How to disable (suppress) unnecessary cast warning in eclipse jdt compiler without Eclipse IDE? Maybe there are any compile options?
Go to : -
Windows -> Preferences -> Java on left panel -> Compiler -> Errors/Warnings.
There you can disable the warnings you don't want.
To disable warnings while compiling using javac
, you can use -Xlint:-name
flag, where name
is the name of the warning.
See javac doc for more options available while compiling.