< prev index next >

src/com/sun/javatest/exec/ProgressMonitor.java

Print this page
rev 145 : 7902237: Fixing raw use of parameterized class
Reviewed-by: jjg

@@ -474,11 +474,11 @@
             return card;
         }
 
         private void initRunningCard() {
             testListData = new DefaultListModel<>();
-            final JList list = uif.createList("pm.runlist", testListData);
+            final JList<?> list = uif.createList("pm.runlist", testListData);
             list.setBorder(BorderFactory.createEtchedBorder());
             list.setCellRenderer(RenderingUtilities.createTestListRenderer());
             list.addMouseListener(new MouseAdapter() {
                     public void mouseClicked(MouseEvent e) {
                         int index = list.locationToIndex(e.getPoint());

@@ -513,11 +513,10 @@
         private JComponent idleCard;
         private JComponent runningCard;
 
         private JTextField fileField;
         private DefaultListModel<TestResult> testListData;
-        private JList testList;
         private String rootDir;
     }
 
     private class TimeSubpanel extends StatusSubpanel {
         TimeSubpanel() {
< prev index next >