I'm getting a message when I compile my code:
Note: H:\Project2\MyGui2.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details.
How do I recompile with -Xlint:unchecked
?
Specify it on the command line for javac:
javac -Xlint:unchecked
Or if you are using Ant modify your javac target
<javac ...> <compilerarg value="-Xlint"/> </javac>
If you are using Maven, configure this in the maven-compiler-plugin
<compilerArgument>-Xlint:unchecked</compilerArgument>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With