pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From le...@apache.org
Subject svn commit: r1718684 - /pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/cmap/CMap.java
Date Tue, 08 Dec 2015 19:56:00 GMT
Author: lehmi
Date: Tue Dec  8 19:56:00 2015
New Revision: 1718684

URL: http://svn.apache.org/viewvc?rev=1718684&view=rev
Log:
PDFBOX-3151: use ArrayList instead of LinkedList, don't revert sort order of cid ranges

Modified:
    pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/cmap/CMap.java

Modified: pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/cmap/CMap.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/cmap/CMap.java?rev=1718684&r1=1718683&r2=1718684&view=diff
==============================================================================
--- pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/cmap/CMap.java (original)
+++ pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/cmap/CMap.java Tue Dec  8 19:56:00
2015
@@ -20,7 +20,6 @@ import java.io.IOException;
 import java.io.InputStream;
 import java.util.ArrayList;
 import java.util.HashMap;
-import java.util.LinkedList;
 import java.util.List;
 import java.util.Map;
 
@@ -48,7 +47,7 @@ public class CMap
 
     // CID mappings
     private final Map<Integer,Integer> codeToCid = new HashMap<Integer,Integer>();
-    private final List<CIDRange> codeToCidRanges = new LinkedList<CIDRange>();
+    private final List<CIDRange> codeToCidRanges = new ArrayList<CIDRange>();
 
     private static final String SPACE = " ";
     private int spaceMapping = -1;
@@ -261,7 +260,7 @@ public class CMap
      */
     void addCIDRange(char from, char to, int cid)
     {
-        codeToCidRanges.add(0, new CIDRange(from, to, cid));
+        codeToCidRanges.add(new CIDRange(from, to, cid));
     }
 
     /**



Mime
View raw message