mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IG: fix serialization to avoid modifying users' inspection profiles
This commit is contained in:
+7
@@ -29,6 +29,7 @@ import com.siyeh.ig.PsiReplacementUtil;
|
||||
import com.siyeh.ig.psiutils.BoolUtils;
|
||||
import com.siyeh.ig.psiutils.CommentTracker;
|
||||
import com.siyeh.ig.psiutils.ExpressionUtils;
|
||||
import org.jdom.Element;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import javax.swing.*;
|
||||
@@ -78,6 +79,12 @@ public class NegatedConditionalInspection extends BaseInspection {
|
||||
return panel;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeSettings(@NotNull Element node) {
|
||||
defaultWriteSettings(node, "m_ignoreNegatedZeroComparison");
|
||||
writeBooleanOption(node, "m_ignoreNegatedZeroComparison", true);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected InspectionGadgetsFix buildFix(Object... infos) {
|
||||
return new NegatedConditionalFix();
|
||||
|
||||
Reference in New Issue
Block a user