pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1838116 - /pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/streampane/StreamPane.java
Date Wed, 15 Aug 2018 16:48:23 GMT
Author: tilman
Date: Wed Aug 15 16:48:23 2018
New Revision: 1838116

URL: http://svn.apache.org/viewvc?rev=1838116&view=rev
Log:
PDFBOX-4071: use generics

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

Modified: pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/streampane/StreamPane.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/streampane/StreamPane.java?rev=1838116&r1=1838115&r2=1838116&view=diff
==============================================================================
--- pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/streampane/StreamPane.java
(original)
+++ pdfbox/trunk/debugger/src/main/java/org/apache/pdfbox/debugger/streampane/StreamPane.java
Wed Aug 15 16:48:23 2018
@@ -28,6 +28,7 @@ import java.io.IOException;
 import java.io.InputStream;
 import java.util.List;
 import java.util.Map;
+import java.util.Vector;
 import java.util.concurrent.ExecutionException;
 import javax.imageio.ImageIO;
 import javax.swing.BoxLayout;
@@ -158,7 +159,7 @@ public class StreamPane implements Actio
 
     private JPanel createHeaderPanel(List<String> availableFilters, String i, ActionListener
actionListener)
     {
-        JComboBox filters = new JComboBox(availableFilters.toArray());
+        JComboBox<String> filters = new JComboBox<>(new Vector<>(availableFilters));
         filters.setSelectedItem(i);
         filters.addActionListener(actionListener);
 



Mime
View raw message