remove option: IDEA-CR-24906

This commit is contained in:
Roman
2017-11-01 15:14:39 +07:00
parent d29131816e
commit d42826fc5e
@@ -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) {