pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1701086 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDFontDescriptor.java
Date Thu, 03 Sep 2015 17:43:42 GMT
Author: tilman
Date: Thu Sep  3 17:43:42 2015
New Revision: 1701086

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

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

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDFontDescriptor.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDFontDescriptor.java?rev=1701086&r1=1701085&r2=1701086&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDFontDescriptor.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDFontDescriptor.java
Thu Sep  3 17:43:42 2015
@@ -817,7 +817,7 @@ public final class PDFontDescriptor impl
     public PDStream getCIDSet()
     {
         COSObjectable cidSet = dic.getDictionaryObject(COSName.CID_SET);
-        if (cidSet != null && cidSet instanceof COSStream)
+        if (cidSet instanceof COSStream)
         {
             return new PDStream((COSStream) cidSet);
         }



Mime
View raw message