--- old/src/share/classes/javax/swing/plaf/basic/BasicOptionPaneUI.java 2014-06-26 12:32:28.000000000 -0700 +++ new/src/share/classes/javax/swing/plaf/basic/BasicOptionPaneUI.java 2014-06-26 12:32:28.000000000 -0700 @@ -450,7 +450,7 @@ if (sValues != null) { if (sValues.length < 20) { - JComboBox cBox = new JComboBox(); + JComboBox cBox = new JComboBox<>(); cBox.setName("OptionPane.comboBox"); for(int counter = 0, maxCounter = sValues.length; @@ -464,7 +464,7 @@ toAdd = cBox; } else { - JList list = new JList(sValues); + JList list = new JList<>(sValues); JScrollPane sp = new JScrollPane(list); sp.setName("OptionPane.scrollPane"); @@ -1232,7 +1232,7 @@ public void mousePressed(MouseEvent e) { if (e.getClickCount() == 2) { - JList list = (JList)e.getSource(); + JList list = (JList)e.getSource(); int index = list.locationToIndex(e.getPoint()); optionPane.setInputValue(list.getModel().getElementAt(index));