diff --git a/java/java.openjdk.project/src/org/netbeans/modules/java/openjdk/jtreg/FileHintPreferencesProviderImpl.java b/java/java.openjdk.project/src/org/netbeans/modules/java/openjdk/jtreg/FileHintPreferencesProviderImpl.java index 8fe5c74f8118..ec7ee46464fc 100644 --- a/java/java.openjdk.project/src/org/netbeans/modules/java/openjdk/jtreg/FileHintPreferencesProviderImpl.java +++ b/java/java.openjdk.project/src/org/netbeans/modules/java/openjdk/jtreg/FileHintPreferencesProviderImpl.java @@ -39,11 +39,11 @@ public Preferences getFilePreferences(FileObject file, String mimeType) { Preferences testPreferences = NbPreferences.forModule(FileHintPreferencesProvider.class).node("jtreg"); Preferences unusedHintNode = testPreferences.node("org.netbeans.modules.java.hints.bugs.Unused"); - if ("undefined".equals(unusedHintNode.get("enabled", "undefined"))) { + if ("undefined".equals(unusedHintNode.get("detect.unused.package.private", "undefined"))) { //unused elements are common in tests, and often not bugs/problematic //better disable the unused element hint in tests, to avoid too many false positives //(note semantic highlighting should still mark them): - unusedHintNode.putBoolean("enabled", false); + unusedHintNode.putBoolean("detect.unused.package.private", false); } return testPreferences;