mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
actual parameter is the same value inspection: add option to ignore method by visibility (remove redundant writeSettings)
This commit is contained in:
-8
@@ -26,7 +26,6 @@ import com.intellij.profile.codeInspection.InspectionProjectProfileManager;
|
||||
import com.intellij.psi.*;
|
||||
import com.intellij.util.ObjectUtils;
|
||||
import com.intellij.util.VisibilityUtil;
|
||||
import org.jdom.Element;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
@@ -42,13 +41,6 @@ public class SameParameterValueInspectionBase extends GlobalJavaBatchInspectionT
|
||||
@PsiModifier.ModifierConstant
|
||||
public String highestModifier = DEFAULT_HIGHEST_MODIFIER;
|
||||
|
||||
@Override
|
||||
public void writeSettings(@NotNull Element node) {
|
||||
if (highestModifier != DEFAULT_HIGHEST_MODIFIER) {
|
||||
super.writeSettings(node);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@Nullable
|
||||
public CommonProblemDescriptor[] checkElement(@NotNull RefEntity refEntity,
|
||||
|
||||
Reference in New Issue
Block a user