<Swing Dev> [PATCH] 6179357-related: warnings removal: gtk
Florian Brunner
fbrunnerlist at gmx.ch
Thu Nov 13 01:40:27 UTC 2008
Hi Pavel,
I fixed the 2 issues.
-Florian
Am Mittwoch, 12. November 2008 schrieb Pavel Porvatov:
> Hi Florian,
>
> Your fix looks very good. I have a couple comments:
>
> 1.
> com.sun.java.swing.plaf.gtk.GTKColorChooserPanel.ColorTriangle#colorWheelLo
>cationToRGB - can you fix javadoc please (this is a private method). The
> last
> "param" tag should be replaced by "return" tag
>
> 2.
> @@ -895,10 +895,10 @@ class GTKFileChooserUI extends SynthFile
>
> private class GTKDirectoryModel extends BasicDirectoryModel {
> FileSystemView fsv;
> - private Comparator fileComparator = new Comparator() {
> - public int compare(Object o, Object o1) {
> - return fsv.getSystemDisplayName((File) o).compareTo
> - (fsv.getSystemDisplayName((File) o1));
> + private Comparator<File> fileComparator = new Comparator<File>() {
> + public int compare(File o, File o1) {
> + return fsv.getSystemDisplayName(o).compareTo
> + (fsv.getSystemDisplayName(o1));
> }
> };
>
> Can you make return statement in a single line please
>
>
> Regards, Pavel.
>
> > Hi Pavel,
> >
> > any news about my patch?
> >
> > Thanks.
> > -Florian
> >
> > Am Freitag, 10. Oktober 2008 schrieb Pavel Porvatov:
> >> Hi Florian,
> >>
> >> Thanks for your patch. I'll review your patch in two-three weeks and
> >> mail you response.
> >>
> >> Thanks, Pavel.
> >>
> >>> Hi,
> >>>
> >>> here another patch to remove warnings in the gtk package.
> >>>
> >>> When compiling with
> >>> -Xlint -J-Xms80m -J-Xmx256m -Xlint:-serial -Xlint:-deprecation
> >>> -Xlint:-fallthrough -Xmaxwarns 2300
> >>> this patch reduces the number of reported warnings from 201 to 112.
> >>>
> >>> Again, I tried only to change things related to the warnings and not to
> >>> change any public or protected APIs in public or protected classes in
> >>> this patch.
> >>>
> >>> At many places I tried to add type parameters as meaningful as
> >>> possible, but with some cases I just used Object, if a more meaningful
> >>> type parameter was not so trivial. You might want to refactor this if
> >>> needed. (Though everything should work as it is.)
> >>>
> >>> -Florian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: swing-patch-20081113-warnings_gtk.patch
Type: text/x-diff
Size: 13081 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20081113/8fe50a54/swing-patch-20081113-warnings_gtk.patch>
More information about the swing-dev
mailing list