pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1846331 - /pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/multipdf/Overlay.java
Date Sun, 11 Nov 2018 07:49:16 GMT
Author: tilman
Date: Sun Nov 11 07:49:16 2018
New Revision: 1846331

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

Modified:
    pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/multipdf/Overlay.java

Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/multipdf/Overlay.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/multipdf/Overlay.java?rev=1846331&r1=1846330&r2=1846331&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/multipdf/Overlay.java (original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/multipdf/Overlay.java Sun Nov
11 07:49:16 2018
@@ -156,9 +156,9 @@ public class Overlay implements Closeabl
         {
             evenPageOverlay.close();
         }
-        for (Map.Entry<Integer, PDDocument> e : specificPageOverlay.entrySet())
+        for (PDDocument doc : specificPageOverlay.values())
         {
-            e.getValue().close();
+            doc.close();
         }
         specificPageOverlay.clear();
         specificPageOverlayPage.clear();



Mime
View raw message