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 2019/12/14 17:11:23 UTC

svn commit: r1871554 - /pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox/multipdf/LayerUtility.java

Author: tilman
Date: Sat Dec 14 17:11:22 2019
New Revision: 1871554

URL: http://svn.apache.org/viewvc?rev=1871554&view=rev
Log:
PDFBOX-4071: Sonar fix: just pass the elements

Modified:
    pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox/multipdf/LayerUtility.java

Modified: pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox/multipdf/LayerUtility.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox/multipdf/LayerUtility.java?rev=1871554&r1=1871553&r2=1871554&view=diff
==============================================================================
--- pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox/multipdf/LayerUtility.java (original)
+++ pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox/multipdf/LayerUtility.java Sat Dec 14 17:11:22 2019
@@ -20,6 +20,7 @@ import java.awt.geom.AffineTransform;
 import java.io.IOException;
 import java.io.OutputStream;
 import java.util.Arrays;
+import java.util.HashSet;
 import java.util.Map;
 import java.util.Set;
 import org.apache.commons.logging.Log;
@@ -142,8 +143,8 @@ public class LayerUtility
         return importPageAsForm(sourceDoc, page);
     }
 
-    private static final Set<String> PAGE_TO_FORM_FILTER = new java.util.HashSet<String>(
-            Arrays.asList(new String[] {"Group", "LastModified", "Metadata"}));
+    private static final Set<String> PAGE_TO_FORM_FILTER =
+            new HashSet<String>(Arrays.asList("Group", "LastModified", "Metadata"));
 
     /**
      * Imports a page from some PDF file as a Form XObject so it can be placed on another page