From d42826fc5e49993fe43a80bb36eda22009216f85 Mon Sep 17 00:00:00 2001 From: Roman Date: Thu, 12 Oct 2017 12:27:23 +0700 Subject: [PATCH] remove option: IDEA-CR-24906 --- .../codeInspection/ReplaceNullCheckInspection.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/java/java-impl/src/com/intellij/codeInspection/ReplaceNullCheckInspection.java b/java/java-impl/src/com/intellij/codeInspection/ReplaceNullCheckInspection.java index 9b6a67100ed7..35dec57d3b98 100644 --- a/java/java-impl/src/com/intellij/codeInspection/ReplaceNullCheckInspection.java +++ b/java/java-impl/src/com/intellij/codeInspection/ReplaceNullCheckInspection.java @@ -25,7 +25,7 @@ import static com.intellij.util.ObjectUtils.tryCast; public class ReplaceNullCheckInspection extends AbstractBaseJavaLocalInspectionTool { private static final EquivalenceChecker ourEquivalence = EquivalenceChecker.getCanonicalPsiEquivalence(); - public int MINIMAL_WARN_DELTA_SIZE = 30; + private int MINIMAL_WARN_DELTA_SIZE = 30; private static final CallMatcher STREAM_EMPTY = CallMatcher.staticCall(CommonClassNames.JAVA_UTIL_STREAM_STREAM, "empty") .parameterCount(0); @@ -34,15 +34,6 @@ public class ReplaceNullCheckInspection extends AbstractBaseJavaLocalInspectionT CallMatcher.staticCall(CommonClassNames.JAVA_UTIL_STREAM_STREAM, "of").parameterTypes("T") ); - @Nullable - @Override - public JComponent createOptionsPanel() { - return new SingleIntegerFieldOptionsPanel( - InspectionsBundle.message("inspection.require.non.null.option.min.size"), - this, "MINIMAL_WARN_DELTA_SIZE" - ); - } - @NotNull @Override public PsiElementVisitor buildVisitor(@NotNull ProblemsHolder holder, boolean isOnTheFly) {