< prev index next >

src/com/sun/javatest/tool/EditableList.java

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

@@ -156,11 +156,11 @@
      * Get the items currently in the list, in an array of a specific type.
      * @param c the component type of the array to be returned
      * @return an array containing the items currently in the list
      * @see #setItems
      */
-    public Object[] getItems(Class c) {
+    public Object[] getItems(Class<?> c) {
         Object[] items = (Object[]) (Array.newInstance(c, listModel.size()));
         listModel.copyInto(items);
         return items;
     }
 

@@ -334,11 +334,11 @@
                                       JOptionPane.INFORMATION_MESSAGE);
     }
 
     private class Renderer
         extends DefaultListCellRenderer {
-        public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
+        public Component getListCellRendererComponent(JList<?> list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
             return super.getListCellRendererComponent(list,
                                                       getDisplayValue(value),
                                                       index,
                                                       isSelected,
                                                       cellHasFocus);
< prev index next >