pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1662282 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDSimpleFont.java
Date Wed, 25 Feb 2015 17:32:00 GMT
Author: tilman
Date: Wed Feb 25 17:31:59 2015
New Revision: 1662282

URL: http://svn.apache.org/r1662282
Log:
PDFBOX-2576: instanceof something is never null

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDSimpleFont.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDSimpleFont.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDSimpleFont.java?rev=1662282&r1=1662281&r2=1662282&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDSimpleFont.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDSimpleFont.java Wed
Feb 25 17:31:59 2015
@@ -376,11 +376,12 @@ public abstract class PDSimpleFont exten
         throw new IllegalStateException("No AFM");
     }
 
+    @Override
     public boolean isStandard14()
     {
         // this logic is based on Acrobat's behaviour, see see PDFBOX-2372
         // the Encoding entry cannot have Differences if we want "standard 14" font handling
-        if (getEncoding() != null && getEncoding() instanceof DictionaryEncoding)
+        if (getEncoding() instanceof DictionaryEncoding)
         {
             DictionaryEncoding dictionary = (DictionaryEncoding)getEncoding();
             if (dictionary.getDifferences().size() > 0)



Mime
View raw message