pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1867519 - /pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/streampane/Stream.java
Date Wed, 25 Sep 2019 17:06:31 GMT
Author: tilman
Date: Wed Sep 25 17:06:31 2019
New Revision: 1867519

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

Modified:
    pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/streampane/Stream.java

Modified: pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/streampane/Stream.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/streampane/Stream.java?rev=1867519&r1=1867518&r2=1867519&view=diff
==============================================================================
--- pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/streampane/Stream.java
(original)
+++ pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/streampane/Stream.java
Wed Sep 25 17:06:31 2019
@@ -97,12 +97,7 @@ public class Stream
      */
     public List<String> getFilterList()
     {
-        List<String> list = new ArrayList<>();
-        for (Map.Entry<String, List<String>> entry : filters.entrySet())
-        {
-            list.add(entry.getKey());
-        }
-        return list;
+        return new ArrayList(filters.keySet());
     }
 
     /**



Mime
View raw message