pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1864643 - /pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/table/common/CoverageTableFormat2.java
Date Wed, 07 Aug 2019 16:35:05 GMT
Author: tilman
Date: Wed Aug  7 16:35:05 2019
New Revision: 1864643

URL: http://svn.apache.org/viewvc?rev=1864643&view=rev
Log:
PDFBOX-4071: simplify code

Modified:
    pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/table/common/CoverageTableFormat2.java

Modified: pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/table/common/CoverageTableFormat2.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/table/common/CoverageTableFormat2.java?rev=1864643&r1=1864642&r2=1864643&view=diff
==============================================================================
--- pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/table/common/CoverageTableFormat2.java
(original)
+++ pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/table/common/CoverageTableFormat2.java
Wed Aug  7 16:35:05 2019
@@ -45,13 +45,11 @@ public class CoverageTableFormat2 extend
 
     private static int[] getRangeRecordsAsArray(RangeRecord[] rangeRecords)
     {
-
         List<Integer> glyphIds = new ArrayList<>();
 
-        for (int i = 0; i < rangeRecords.length; i++)
+        for (RangeRecord rangeRecord : rangeRecords)
         {
-            for (int glyphId = rangeRecords[i].getStartGlyphID(); glyphId <= rangeRecords[i]
-                    .getEndGlyphID(); glyphId++)
+            for (int glyphId = rangeRecord.getStartGlyphID(); glyphId <= rangeRecord.getEndGlyphID();
glyphId++)
             {
                 glyphIds.add(glyphId);
             }



Mime
View raw message