pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1666322 - /pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/font/Type1FontValidator.java
Date Thu, 12 Mar 2015 22:13:46 GMT
Author: tilman
Date: Thu Mar 12 22:13:46 2015
New Revision: 1666322

URL: http://svn.apache.org/r1666322
Log:
PDFBOX-2576: remove unneeded casts

Modified:
    pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/font/Type1FontValidator.java

Modified: pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/font/Type1FontValidator.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/font/Type1FontValidator.java?rev=1666322&r1=1666321&r2=1666322&view=diff
==============================================================================
--- pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/font/Type1FontValidator.java
(original)
+++ pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/font/Type1FontValidator.java
Thu Mar 12 22:13:46 2015
@@ -29,7 +29,6 @@ import static org.apache.pdfbox.prefligh
 import static org.apache.pdfbox.preflight.PreflightConstants.FONT_DICTIONARY_VALUE_ENCODING_WIN;
 
 import org.apache.pdfbox.cos.COSBase;
-import org.apache.pdfbox.cos.COSDictionary;
 import org.apache.pdfbox.cos.COSDocument;
 import org.apache.pdfbox.cos.COSName;
 import org.apache.pdfbox.pdmodel.font.PDSimpleFont;
@@ -56,7 +55,7 @@ public class Type1FontValidator extends
     @Override
     protected void checkEncoding()
     {
-        COSBase encoding = ((COSDictionary) fontDictionary).getItem(COSName.ENCODING);
+        COSBase encoding = fontDictionary.getItem(COSName.ENCODING);
         if (encoding != null)
         {
             COSDocument cosDocument = context.getDocument().getDocument();



Mime
View raw message