Index: trunk/src/org/openstreetmap/josm/gui/widgets/JosmComboBox.java
===================================================================
--- trunk/src/org/openstreetmap/josm/gui/widgets/JosmComboBox.java	(revision 18279)
+++ trunk/src/org/openstreetmap/josm/gui/widgets/JosmComboBox.java	(revision 18280)
@@ -298,6 +298,6 @@
      * @return the list or null
      */
-    @SuppressWarnings("unchecked")
-    public JList<E> getList() {
+    @SuppressWarnings("rawtypes")
+    public JList getList() {
         Object popup = getUI().getAccessibleChild(this, 0);
         if (popup != null && popup instanceof javax.swing.plaf.basic.ComboPopup) {
@@ -306,6 +306,4 @@
         return null;
     }
-
-    // get the popup list
 
     /**
@@ -388,4 +386,5 @@
         try {
             // First try an implementation-dependent method to get the exact number.
+            @SuppressWarnings("unchecked")
             JList<E> jList = getList();
 
