pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1650798 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/logicalstructure/PDStructureTreeRoot.java
Date Sat, 10 Jan 2015 19:53:02 GMT
Author: tilman
Date: Sat Jan 10 19:53:02 2015
New Revision: 1650798

URL: http://svn.apache.org/r1650798
Log:
PDFBOX-2576: avoid inefficient use of keySet iterator instead of entrySet iterator

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/logicalstructure/PDStructureTreeRoot.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/logicalstructure/PDStructureTreeRoot.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/logicalstructure/PDStructureTreeRoot.java?rev=1650798&r1=1650797&r2=1650798&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/logicalstructure/PDStructureTreeRoot.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/logicalstructure/PDStructureTreeRoot.java
Sat Jan 10 19:53:02 2015
@@ -213,9 +213,9 @@ public class PDStructureTreeRoot extends
     public void setRoleMap(Map<String, String> roleMap)
     {
         COSDictionary rmDic = new COSDictionary();
-        for (String key : roleMap.keySet())
+        for (Map.Entry<String, String> entry : roleMap.entrySet())
         {
-            rmDic.setName(key, roleMap.get(key));
+            rmDic.setName(entry.getKey(), entry.getValue());
         }
         this.getCOSDictionary().setItem(COSName.ROLE_MAP, rmDic);
     }



Mime
View raw message