about SuppressWarnings (original) (raw)
Alan Bateman Alan.Bateman at oracle.com
Sun Nov 4 14:28:32 UTC 2012
- Previous message: about SuppressWarnings
- Next message: hg: jdk8/tl/jdk: 8000330: (fc) FileChannel.truncate issues when given size > file size; ...
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 04/11/2012 13:19, fuyou wrote:
hi all When I use @SuppressWarnings in program. I only know some ,ex @SuppressWarnings("unchecked"), at SuppressWarnings("unused"). what others? The JLS specifies two warning names [2], beyond that it is compiler specific. In the case of javac then you use "java -X" and it output will include possible values for -Xlint that are the warning names you can use with @SupressWarnings.
-Alan
[1] http://docs.oracle.com/javase/specs/jls/se7/html/jls-9.html#jls-9.6.3.5
- Previous message: about SuppressWarnings
- Next message: hg: jdk8/tl/jdk: 8000330: (fc) FileChannel.truncate issues when given size > file size; ...
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]