pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1783529 - /pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/MemoryTTFDataStream.java
Date Sat, 18 Feb 2017 12:59:09 GMT
Author: tilman
Date: Sat Feb 18 12:59:09 2017
New Revision: 1783529

URL: http://svn.apache.org/viewvc?rev=1783529&view=rev
Log:
PDFBOX-2852: remove "if" that is always true

Modified:
    pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/MemoryTTFDataStream.java

Modified: pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/MemoryTTFDataStream.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/MemoryTTFDataStream.java?rev=1783529&r1=1783528&r2=1783529&view=diff
==============================================================================
--- pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/MemoryTTFDataStream.java (original)
+++ pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/MemoryTTFDataStream.java Sat
Feb 18 12:59:09 2017
@@ -53,10 +53,7 @@ class MemoryTTFDataStream extends TTFDat
         }
         finally
         {
-            if( is != null )
-            {
-                is.close();
-            }
+            is.close();
         }
     }
     



Mime
View raw message