• Post Reply Bookmark Topic Watch Topic
  • New Topic

What is the javac command-line parameter to supress warnings described by -Xlint:unchecked message?  RSS feed

 
John La
Greenhorn
Posts: 12
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm familiar with the error described by this warning message, and would like to suppress the warning, as the code flagged is correct.

Thanks in advance for any help you may provide.
 
John La
Greenhorn
Posts: 12
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use generics.

"Never mind".
 
Campbell Ritchie
Marshal
Posts: 56536
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think it is @SuppressWarnings("unchecked") but I am not certain. You only use that annotation if you are absolutely certain the code is correct. you should find more about it in the Java® Tutorials; try the section about predefined annotations.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!