You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by em...@apache.org on 2019/11/20 07:53:25 UTC
[netbeans] branch master updated: [NETBEANS-3380] Fix default of
checkOnlyImmutables option in ConstantName hint.
This is an automated email from the ASF dual-hosted git repository.
emi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git
The following commit(s) were added to refs/heads/master by this push:
new b02fe57 [NETBEANS-3380] Fix default of checkOnlyImmutables option in ConstantName hint.
new fe7ea52 Merge pull request #1642 from errael/fixConstNames
b02fe57 is described below
commit b02fe5735672432ea146491c4f7dfaddb7fcd06f
Author: Ernie Rael <er...@raelity.com>
AuthorDate: Wed Nov 20 03:39:29 2019 +0000
[NETBEANS-3380] Fix default of checkOnlyImmutables option in ConstantName hint.
---
.../org/netbeans/modules/java/hints/suggestions/ConstantNameHint.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/java/java.hints/src/org/netbeans/modules/java/hints/suggestions/ConstantNameHint.java b/java/java.hints/src/org/netbeans/modules/java/hints/suggestions/ConstantNameHint.java
index 1402482..3116267 100644
--- a/java/java.hints/src/org/netbeans/modules/java/hints/suggestions/ConstantNameHint.java
+++ b/java/java.hints/src/org/netbeans/modules/java/hints/suggestions/ConstantNameHint.java
@@ -127,7 +127,7 @@ public class ConstantNameHint {
}
Preferences prefs = ctx.getPreferences();
- boolean onlyImmClasses = prefs.getBoolean(PREF_CHECK_ONLY_IMMUTABLES, false);
+ boolean onlyImmClasses = prefs.getBoolean(PREF_CHECK_ONLY_IMMUTABLES, DEFAULT_CHECK_ONLY_IMMUTABLES);
if (onlyImmClasses && !isImmutableValue(ctx.getInfo(), p, ctx.getPreferences())) {
return null;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists