This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to annotated tag org.apache.sling.commons.contentdetection-1.0.2 in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-commons-contentdetection.git
commit 80dda028ca80edc872691f7afa41f75d794067f3 Author: Bertrand Delacretaz <[email protected]> AuthorDate: Fri Jun 26 10:28:44 2015 +0000 cannot be null here, remove dead code git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/commons/contentdetection@1687739 13f79535-47bb-0310-9956-ffa450edef68 --- .../contentdetection/internal/ContentAwareMimeTypeServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/sling/commons/contentdetection/internal/ContentAwareMimeTypeServiceImpl.java b/src/main/java/org/apache/sling/commons/contentdetection/internal/ContentAwareMimeTypeServiceImpl.java index 1e630ed..5264296 100644 --- a/src/main/java/org/apache/sling/commons/contentdetection/internal/ContentAwareMimeTypeServiceImpl.java +++ b/src/main/java/org/apache/sling/commons/contentdetection/internal/ContentAwareMimeTypeServiceImpl.java @@ -50,7 +50,7 @@ public class ContentAwareMimeTypeServiceImpl implements ContentAwareMimeTypeSer if(content == null) { return mimeTypeService.getMimeType(filename); } - if(content != null && !content.markSupported()) { + if(!content.markSupported()) { throw new IllegalArgumentException("Supplied InputStream does not support mark/reset"); } TikaInputStream stream = TikaInputStream.get(content); -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
