Question

I use Java EE 6 with Java 7 and Glassfish 3.1.1. When I choose "clean and build" option in menu it works but it doesn't show warnings about unchecked operations. How to enable it? And additional question: Is there any way to enable all warnings to by shown in editor without clicking "clean and build"?

Was it helpful?

Solution

Go in Tools > Options > Editor > Hints. Then select "Java" if it's not already the case. You'll see a long list of warnings. Expand the Standard Javac Warnings item and you'll see "unchecked" there. You can click it to activate it, or even better, click on Standard Javac Warnings to activate all of them.

It took about a minute for Netbeans to really apply the changes; I tried rebuilding my project many times and resetting the options before it worked.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top