about SuppressWarnings

Krystal Mok rednaxelafx at gmail.com
Sun Nov 4 13:38:19 UTC 2012


Hi,

If you're using javac to compile your Java source code, than you can try
running
javac -X
to see the list of -Xlint options. That'll give you a hint of what warnings
can be suppressed.

As from the JavaDoc [1], the warning names are vendor specific. So if
you're not using javac then youll need to find out what warnings your
compiler supports.

- Kris

[1]:
http://docs.oracle.com/javase/7/docs/api/java/lang/SuppressWarnings.html

On Sun, Nov 4, 2012 at 9:19 PM, fuyou <fuyou001 at gmail.com> wrote:

> hi
>   all
>    When I use @SuppressWarnings in program.
>   I only know some  ,ex
>  @SuppressWarnings("unchecked"), at SuppressWarnings("unused").
>   what others?
>
> --
>    =============================================
>
>   fuyou001
> Best Regards
>



More information about the core-libs-dev mailing list