--- old/src/share/classes/javax/swing/plaf/metal/MetalFileChooserUI.java 2014-06-14 12:28:40.000000000 -0700 +++ new/src/share/classes/javax/swing/plaf/metal/MetalFileChooserUI.java 2014-06-14 12:28:40.000000000 -0700 @@ -58,7 +58,7 @@ // made most things in this class private. private JLabel lookInLabel; - private JComboBox directoryComboBox; + private JComboBox directoryComboBox; private DirectoryComboBoxModel directoryComboBoxModel; private Action directoryComboBoxAction = new DirectoryComboBoxAction(); @@ -76,7 +76,7 @@ private JPanel buttonPanel; private JPanel bottomPanel; - private JComboBox filterComboBox; + private JComboBox filterComboBox; private static final Dimension hstrut5 = new Dimension(5, 1); private static final Dimension hstrut11 = new Dimension(11, 1); @@ -196,7 +196,7 @@ return MetalFileChooserUI.this.getNewFolderAction(); } - public MouseListener createDoubleClickListener(JList list) { + public MouseListener createDoubleClickListener(JList list) { return MetalFileChooserUI.this.createDoubleClickListener(getFileChooser(), list); } @@ -235,7 +235,7 @@ // CurrentDir ComboBox @SuppressWarnings("serial") // anonymous class - JComboBox tmp1 = new JComboBox() { + JComboBox tmp1 = new JComboBox() { public Dimension getPreferredSize() { Dimension d = super.getPreferredSize(); // Must be small enough to not affect total width. @@ -418,7 +418,7 @@ filterComboBoxModel = createFilterComboBoxModel(); fc.addPropertyChangeListener(filterComboBoxModel); - filterComboBox = new JComboBox(filterComboBoxModel); + filterComboBox = new JComboBox<>(filterComboBoxModel); filterComboBox.putClientProperty(AccessibleContext.ACCESSIBLE_DESCRIPTION_PROPERTY, filesOfTypeLabelText); filesOfTypeLabel.setLabelFor(filterComboBox); @@ -533,7 +533,7 @@ // Obsolete class, not used in this version. protected class SingleClickListener extends MouseAdapter { - public SingleClickListener(JList list) { + public SingleClickListener(JList list) { } } @@ -861,7 +861,7 @@ @SuppressWarnings("serial") // Superclass is not serializable across versions class DirectoryComboBoxRenderer extends DefaultListCellRenderer { IndentIcon ii = new IndentIcon(); - public Component getListCellRendererComponent(JList list, Object value, + public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { @@ -1051,7 +1051,7 @@ */ @SuppressWarnings("serial") // Superclass is not serializable across versions public class FilterComboBoxRenderer extends DefaultListCellRenderer { - public Component getListCellRendererComponent(JList list, + public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {