You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2018/11/11 07:55:45 UTC
svn commit: r1846333 -
/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/multipdf/Overlay.java
Author: tilman
Date: Sun Nov 11 07:55:45 2018
New Revision: 1846333
URL: http://svn.apache.org/viewvc?rev=1846333&view=rev
Log:
PDFBOX-4375: better variable name
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=1846333&r1=1846332&r2=1846333&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:55:45 2018
@@ -62,7 +62,7 @@ public class Overlay implements Closeabl
private LayoutPage oddPageOverlayPage;
private LayoutPage evenPageOverlayPage;
- private final Map<Integer, PDDocument> specificPageOverlay = new HashMap<Integer, PDDocument>();
+ private final Map<Integer, PDDocument> openDocumentsMap = new HashMap<Integer, PDDocument>();
private Map<Integer, LayoutPage> specificPageOverlayPage = new HashMap<Integer, LayoutPage>();
private Position position = Position.BACKGROUND;
@@ -117,7 +117,7 @@ public class Overlay implements Closeabl
loadedDocuments.put(e.getValue(), doc);
layouts.put(doc, getLayoutPage(doc));
}
- specificPageOverlay.put(e.getKey(), doc);
+ openDocumentsMap.put(e.getKey(), doc);
specificPageOverlayPage.put(e.getKey(), layouts.get(doc));
}
processPages(inputPDFDocument);
@@ -156,11 +156,11 @@ public class Overlay implements Closeabl
{
evenPageOverlay.close();
}
- for (PDDocument doc : specificPageOverlay.values())
+ for (PDDocument doc : openDocumentsMap.values())
{
doc.close();
}
- specificPageOverlay.clear();
+ openDocumentsMap.clear();
specificPageOverlayPage.clear();
}