<Swing Dev> JDK 9 RFR of JDK-8042849: Fix raw and unchecked warnings in com.sun.java.swing

Alexander Scherbatiy alexandr.scherbatiy at oracle.com
Thu Jun 19 14:26:51 UTC 2014


The fix looks good for me.

Just small comment:
src/share/classes/com/sun/java/swing/plaf/gtk/GTKFileChooserUI.java
-        directoryComboBox = new JComboBox(directoryComboBoxModel);
+        directoryComboBox = new JComboBox<File>(directoryComboBoxModel);
The diamond operator also can be used here.


Thanks,
Alexandr.

On 6/16/2014 6:12 AM, Joe Darcy wrote:
> Hello,
>
> As a follow-up to the other recent lint warning fixes in swing, please 
> review the next chunk of cleanup:
>
>     JDK-8042849: Fix raw and unchecked warnings in com.sun.java.swing
>     http://cr.openjdk.java.net/~darcy/8042849.0/
>
> Thanks,
>
> -Joe




More information about the swing-dev mailing list