Index: src/org/openstreetmap/josm/gui/widgets/JosmComboBox.java
===================================================================
--- src/org/openstreetmap/josm/gui/widgets/JosmComboBox.java	(revision 18270)
+++ src/org/openstreetmap/josm/gui/widgets/JosmComboBox.java	(working copy)
@@ -297,8 +297,8 @@
      *
      * @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) {
             return ((javax.swing.plaf.basic.ComboPopup) popup).getList();
@@ -306,8 +306,6 @@
         return null;
     }
 
-    // get the popup list
-
     /**
      * Draw the hint text for read-only comboboxes.
      * <p>
@@ -387,6 +385,7 @@
 
         try {
             // First try an implementation-dependent method to get the exact number.
+            @SuppressWarnings("unchecked")
             JList<E> jList = getList();
 
             // Calculate the free space available on screen
