This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
[ BUILD # : 201109110600 ] [ JDK VERSION : 1.7 ] first line null is in blue text All lines thereafter it is in grey text
Created attachment 110664 [details] code colouring not consistant
This is in a .java file
Why P1? The gray means the values from the assignment are unused (place a mouse over them and wait for a little while to verify). See Unused Assignment hint in Tools/Options/Editor/Hints/Java to disable it. The assignments for unused variables (like the first one) are not marked, as that was extremely annoying during coding. Will probably need more visual clues for the user to realize this.
(In reply to comment #3) > Why P1? > > The gray means the values from the assignment are unused (place a mouse over > them and wait for a little while to verify). See Unused Assignment hint in > Tools/Options/Editor/Hints/Java to disable it. The assignments for unused > variables (like the first one) are not marked, as that was extremely annoying > during coding. > > Will probably need more visual clues for the user to realize this. Apologies If I got the priority wrong, I thought it was a regression hence the P1. If I change the unused import to show as an ERROR then I get a red line under the unused import. If I change the unused Assignment to ERROR then I don't get any change in behavior from the editor. Changing the Show As property doesn't seem to have a noticeable effect on the editor window for the Unused Assignment
I have changed the hint to adhere to hint standards: http://hg.netbeans.org/jet-main/rev/fb2497f6e6b1
*** Bug 204006 has been marked as a duplicate of this bug. ***
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/fb2497f6e6b1 User: Jan Lahoda <jlahoda@netbeans.org> Log: #202013: changing the UnusedAssignmentOrBranch to work as an ordinary hint.