pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1865831 - /pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSWriter.java
Date Sat, 24 Aug 2019 09:45:56 GMT
Author: tilman
Date: Sat Aug 24 09:45:56 2019
New Revision: 1865831

URL: http://svn.apache.org/viewvc?rev=1865831&view=rev
Log:
PDFBOX-4071: use HashMap, key and values are never null (purely private field that is not
used outside)

Modified:
    pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSWriter.java

Modified: pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSWriter.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSWriter.java?rev=1865831&r1=1865830&r2=1865831&view=diff
==============================================================================
--- pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSWriter.java
(original)
+++ pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSWriter.java
Sat Aug 24 09:45:56 2019
@@ -30,6 +30,7 @@ import java.text.NumberFormat;
 import java.util.ArrayList;
 import java.util.Collections;
 import java.util.Deque;
+import java.util.HashMap;
 import java.util.HashSet;
 import java.util.Hashtable;
 import java.util.Iterator;
@@ -180,7 +181,8 @@ public class COSWriter implements ICOSVi
     //so that null entries will not get added.
     @SuppressWarnings({"squid:S1149"})
     private final Map<COSBase,COSObjectKey> objectKeys = new Hashtable<>();
-    private final Map<COSObjectKey,COSBase> keyObject = new Hashtable<>();
+
+    private final Map<COSObjectKey,COSBase> keyObject = new HashMap<>();
 
     // the list of x ref entries to be made so far
     private final List<COSWriterXRefEntry> xRefEntries = new ArrayList<>();



Mime
View raw message