--- old/src/share/classes/javax/swing/JComboBox.java 2014-06-14 12:28:24.000000000 -0700 +++ new/src/share/classes/javax/swing/JComboBox.java 2014-06-14 12:28:23.000000000 -0700 @@ -1090,7 +1090,7 @@ } } - private boolean isListener(Class c, ActionListener a) { + private boolean isListener(Class c, ActionListener a) { boolean isListener = false; Object[] listeners = listenerList.getListenerList(); for (int i = listeners.length-2; i>=0; i-=2) { @@ -1516,11 +1516,11 @@ * @return an int equal to the selected row, where 0 is the * first item and -1 is none. */ - int selectionForKey(char aKey,ComboBoxModel aModel); + int selectionForKey(char aKey,ComboBoxModel aModel); } class DefaultKeySelectionManager implements KeySelectionManager, Serializable { - public int selectionForKey(char aKey,ComboBoxModel aModel) { + public int selectionForKey(char aKey,ComboBoxModel aModel) { int i,c; int currentSelection = -1; Object selectedItem = aModel.getSelectedItem(); @@ -1642,7 +1642,7 @@ implements AccessibleAction, AccessibleSelection { - private JList popupList; // combo box popup list + private JList popupList; // combo box popup list private Accessible previousSelectedAccessible = null; /** @@ -1966,7 +1966,8 @@ a instanceof javax.swing.plaf.basic.ComboPopup) { // get the popup list - JList list = ((javax.swing.plaf.basic.ComboPopup)a).getList(); + @SuppressWarnings("unchecked") + JList list = ((javax.swing.plaf.basic.ComboPopup)a).getList(); // return the i-th selection in the popup list AccessibleContext ac = list.getAccessibleContext();