Tagged: netbeans
Making NetBeans detects JAVA_HOME
NetBeans’ configuration file contains following line.
# etc/netbeans.conf # netbeans_jdkhome="C:\Program Files\Java\jdkX.Y.Z_SOME" #
When you upgrade JDK, and possibly uninstall the older one, NetBeans starts asking about JDK.
Just comment the line out.
a wrong hint from netbeans
https://netbeans.org/bugzilla/show_bug.cgi?id=262707
public class User { public void setUsername(final String username) { if (this.username != null) { throw new IllegalArgumentException( "already has a username"); } this.username = username; } @NotNull private String username; }
NetBeans shows a hint for the line 4.
Unnecessary test for null – the expression is never null
That’s simply wrong. NetBeans see the @NotNull
and he (or she) thinks the field will never null
at any time.
NetBeans IDE with Nimbus LaF
With Windows
Edit C:\Program Files\NetBeans M.n\etc\netbeans.conf
. And append following option to netbeans_default_options
.
netbeans_default_options="... --laf com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel"