pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1666324 - /pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/font/util/PreflightType3Stream.java
Date Thu, 12 Mar 2015 22:17:42 GMT
Author: tilman
Date: Thu Mar 12 22:17:42 2015
New Revision: 1666324

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

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

Modified: pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/font/util/PreflightType3Stream.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/font/util/PreflightType3Stream.java?rev=1666324&r1=1666323&r2=1666324&view=diff
==============================================================================
--- pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/font/util/PreflightType3Stream.java
(original)
+++ pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/font/util/PreflightType3Stream.java
Thu Mar 12 22:17:42 2015
@@ -149,13 +149,9 @@ public class PreflightType3Stream extend
         {
             width = ((Number) obj).intValue();
         }
-        else if (obj instanceof COSInteger)
+        else if (obj instanceof COSNumber)
         {
-            width = ((COSInteger) obj).floatValue();
-        }
-        else if (obj instanceof COSFloat)
-        {
-            width = ((COSFloat) obj).floatValue();
+            width = ((COSNumber) obj).floatValue();
         }
         else
         {



Mime
View raw message