compat fix
authorNiki Roo <niki@nikiroo.be>
Wed, 22 Apr 2020 18:09:37 +0000 (20:09 +0200)
committerNiki Roo <niki@nikiroo.be>
Wed, 22 Apr 2020 18:09:37 +0000 (20:09 +0200)
compat/JList6.java

index e0aea42ef51f6b4c5057960fff64a06e87c5dd8e..ca44165067d0676ad62861c3005dc5452fb19469 100644 (file)
@@ -27,7 +27,7 @@ public class JList6<E> extends JList {
         *             instead
         */
        public void setCellRenderer(ListCellRenderer cellRenderer) {
-               setCellRenderer((ListCellRenderer6<E>) cellRenderer);
+               super.setCellRenderer(cellRenderer);
        }
 
        /**
@@ -59,7 +59,7 @@ public class JList6<E> extends JList {
        @Override
        @Deprecated
        public void setModel(ListModel model) {
-               setModel((ListModel6<E>) model);
+               super.setModel(model);
        }
 
        /**