[
https://issues.apache.org/jira/browse/ANY23-361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16538969#comment-16538969
]
ASF GitHub Bot commented on ANY23-361:
--
GitHub user HansBrende opened a pull request:
https://github.com/apache/any23/pull/96
ANY23-361 resolved tika deprecation warning
1. resolved tika deprecation warning
2. refactored for code style
3. avoid NullPointerException in `guessMIMEType()`
4. avoid `SecurityException` in `getResourceAsStream()`
5. use synchronization in constructor when initializing static variables
@lewismc any comments?
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/HansBrende/any23 ANY23-361
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/any23/pull/96.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #96
commit d2fcff4f50c6633cffb309440d00e73fd4c3290c
Author: Hans
Date: 2018-07-10T17:08:23Z
ANY23-361 resolved tika deprecation warning
> Resolve Tika deprecation warning
>
>
> Key: ANY23-361
> URL: https://issues.apache.org/jira/browse/ANY23-361
> Project: Apache Any23
> Issue Type: Sub-task
> Components: mime
>Affects Versions: 2.3
>Reporter: Hans Brende
>Assignee: Hans Brende
>Priority: Minor
> Fix For: 2.3
>
>
> The following deprecation warning occurs in
> {{o.a.a.mime.TikaMIMETypeDetector}}:
> {{getMimeType(java.lang.String) in org.apache.tika.mime.MimeTypes has been
> deprecated}}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)