From 0191befbda2607b61d3b95121023e71e43636586 Mon Sep 17 00:00:00 2001 From: Anna Kozlova Date: Wed, 25 Nov 2015 20:29:05 +0100 Subject: [PATCH] enable inspection by default (IDEA-146085) --- .../java15api/Java15APIUsageInspectionBase.java | 5 ----- .../src/messages/InspectionsBundle.properties | 2 +- resources/src/META-INF/IdeaPlugin.xml | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/java/java-analysis-impl/src/com/intellij/codeInspection/java15api/Java15APIUsageInspectionBase.java b/java/java-analysis-impl/src/com/intellij/codeInspection/java15api/Java15APIUsageInspectionBase.java index 1d9fd85aeee0..23d06e180dec 100644 --- a/java/java-analysis-impl/src/com/intellij/codeInspection/java15api/Java15APIUsageInspectionBase.java +++ b/java/java-analysis-impl/src/com/intellij/codeInspection/java15api/Java15APIUsageInspectionBase.java @@ -154,11 +154,6 @@ public class Java15APIUsageInspectionBase extends BaseJavaBatchLocalInspectionTo return HighlightDisplayLevel.ERROR; } - @Override - public boolean isEnabledByDefault() { - return false; - } - @Override public void readSettings(@NotNull Element node) throws InvalidDataException { final Element element = node.getChild(EFFECTIVE_LL); diff --git a/platform/platform-resources-en/src/messages/InspectionsBundle.properties b/platform/platform-resources-en/src/messages/InspectionsBundle.properties index 82fee6528344..2f02473b8492 100644 --- a/platform/platform-resources-en/src/messages/InspectionsBundle.properties +++ b/platform/platform-resources-en/src/messages/InspectionsBundle.properties @@ -120,7 +120,7 @@ inspection.equals.hashcode.only.one.defined.problem.descriptor=Class has {0} def inspection.equals.hashcode.generate.equals.quickfix=Generate 'equals()' inspection.equals.hashcode.generate.hashcode.quickfix=Generate 'hashCode()' -inspection.1.5.display.name=Usages of API documented as @since 1.5 (1.6|1.7) +inspection.1.5.display.name=Usages of API which isn't available at the configured language level inspection.1.5.problem.descriptor=Usage of API documented as @since {0}+ inspection.1.7.problem.descriptor=Usage of generified after 1.6 API which would cause compilation problems with JDK {0} inspection.1.8.problem.descriptor=Default {0, choice, 0#|1#method is|2# methods are} not overridden. It would cause compilation problems with JDK {1} diff --git a/resources/src/META-INF/IdeaPlugin.xml b/resources/src/META-INF/IdeaPlugin.xml index 309d77b23b1c..8c0009d4fb70 100644 --- a/resources/src/META-INF/IdeaPlugin.xml +++ b/resources/src/META-INF/IdeaPlugin.xml @@ -635,7 +635,7 @@ groupName="Probable bugs" enabledByDefault="false" level="WARNING" implementationClass="com.intellij.codeInspection.equalsAndHashcode.EqualsAndHashcode"/>