pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1803834 - /pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/imageio/ImageIOUtil.java
Date Wed, 02 Aug 2017 15:46:15 GMT
Author: tilman
Date: Wed Aug  2 15:46:15 2017
New Revision: 1803834

URL: http://svn.apache.org/viewvc?rev=1803834&view=rev
Log:
PDFBOX-2852: make private class static to reduce dependency

Modified:
    pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/imageio/ImageIOUtil.java

Modified: pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/imageio/ImageIOUtil.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/imageio/ImageIOUtil.java?rev=1803834&r1=1803833&r2=1803834&view=diff
==============================================================================
--- pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/imageio/ImageIOUtil.java (original)
+++ pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/imageio/ImageIOUtil.java Wed
Aug  2 15:46:15 2017
@@ -271,7 +271,7 @@ public final class ImageIOUtil
     private static IIOMetadataNode getOrCreateChildNode(IIOMetadataNode parentNode, String
name)
     {
         NodeList nodeList = parentNode.getElementsByTagName(name);
-        if (nodeList != null && nodeList.getLength() > 0)
+        if (nodeList.getLength() > 0)
         {
             return (IIOMetadataNode) nodeList.item(0);
         }



Mime
View raw message