pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1666293 - /pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/GlyfCompositeDescript.java
Date Thu, 12 Mar 2015 20:37:42 GMT
Author: tilman
Date: Thu Mar 12 20:37:42 2015
New Revision: 1666293

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

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

Modified: pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/GlyfCompositeDescript.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/GlyfCompositeDescript.java?rev=1666293&r1=1666292&r2=1666293&view=diff
==============================================================================
--- pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/GlyfCompositeDescript.java (original)
+++ pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/GlyfCompositeDescript.java Thu
Mar 12 20:37:42 2015
@@ -97,7 +97,7 @@ public class GlyfCompositeDescript exten
         Iterator<GlyfCompositeComp> i = components.iterator();
         while (i.hasNext())
         {
-            GlyfCompositeComp comp = (GlyfCompositeComp) i.next();
+            GlyfCompositeComp comp = i.next();
             comp.setFirstIndex(firstIndex);
             comp.setFirstContour(firstContour);
 
@@ -203,7 +203,7 @@ public class GlyfCompositeDescript exten
         {
             LOG.error("getPointCount called on unresolved GlyfCompositeDescript");
         }
-        GlyfCompositeComp c = (GlyfCompositeComp) components.get(components.size() - 1);
+        GlyfCompositeComp c = components.get(components.size() - 1);
         GlyphDescription gd = getGlypDescription(c.getGlyphIndex());
         if (gd == null)
         {
@@ -223,7 +223,7 @@ public class GlyfCompositeDescript exten
         {
             LOG.error("getContourCount called on unresolved GlyfCompositeDescript");
         }
-        GlyfCompositeComp c = (GlyfCompositeComp) components.get(components.size() - 1);
+        GlyfCompositeComp c = components.get(components.size() - 1);
         return c.getFirstContour() + getGlypDescription(c.getGlyphIndex()).getContourCount();
     }
 



Mime
View raw message