You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2019/11/20 07:36:24 UTC

[GitHub] [netbeans] errael commented on issue #1642: [NETBEANS-3380] Fix default of checkOnlyImmutables option in Constant…

errael commented on issue #1642: [NETBEANS-3380] Fix default of checkOnlyImmutables option in Constant…
URL: https://github.com/apache/netbeans/pull/1642#issuecomment-555877859
 
 
   >
   > ...that default seems to be ignored...
   >
   Could it be that in your situation the preference had been set and so the default would no longer matter?
   
   I ran into this just after a clean install with no preferences (options) imported, and the problem went away after I toggled the option with the dialog forcing a value into the file. I was able to recreate the bug without totally starting from scratch by closing NB, deleting the preference line "onlyCheckImmutables=true" from the file
   
   userdir/config/Preferences/org/netbeans/modules/java/hints/default/org.netbeans.modules.java.hints.suggestions.ConstantNameHint.properties,
   
   restart NB and observe the bug: the options dialog had "only check immutable" checked, but in the editor something like
   
       _private static final Map<Date, Object> tcChecked = new WeakHashMap<Date, Object>();_
   
   had hint even though _tcChecked_ was mutable.
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists