Where can I find the Xlint option in Netbeans?

2019-01-23 06:36发布

问题:

I get an error Recompile with -Xlint:unchecked for details. in Netbeans. Where can I find the option to uncheck?

回答1:

You don't "uncheck" that option, you need to add the -Xlint:unchecked parameter to the parameters passed to the Java compiler.

This is done through Project Properties -> Build -> Compiling in the "Additional compiler options" input field at the bottom of the dialog (where it says "e.g.: -Xlint:unchecked")