mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-14 18:05:27 +07:00
[lombok] IDEA-255688 Partial Revert: Get rid of LombokHighlightErrorFilter for "Redundant Initializer Inspection"
already fixed with 24c8ea6896925f9af478b38e9a923d2ec4678ee9 GitOrigin-RevId: b1a1cf8a7fcf6a35cd67bf07fdf67fbc9415d1e8
This commit is contained in:
committed by
intellij-monorepo-bot
parent
a93bf77d6f
commit
67578dcd6c
@@ -64,6 +64,7 @@ public class LombokAugmentProvider extends PsiAugmentProvider {
|
||||
*/
|
||||
//see de.plushnikov.intellij.plugin.inspection.DataFlowInspectionTest.testDefaultBuilderFinalValueInspectionIsAlwaysThat
|
||||
//see de.plushnikov.intellij.plugin.inspection.PointlessBooleanExpressionInspectionTest.testPointlessBooleanExpressionBuilderDefault
|
||||
//see com.intellij.java.lomboktest.LombokHighlightingTest.testBuilderWithDefaultRedundantInitializer
|
||||
@Override
|
||||
protected boolean fieldInitializerMightBeChanged(@NotNull PsiField field) {
|
||||
return PsiAnnotationSearchUtil.isAnnotatedWith(field, LombokClassNames.BUILDER_DEFAULT);
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
package de.plushnikov.intellij.plugin.provider;
|
||||
|
||||
import com.intellij.codeInspection.defUse.DefUseInspection;
|
||||
import com.intellij.psi.PsiVariable;
|
||||
import de.plushnikov.intellij.plugin.LombokClassNames;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* This class represents a support class for ignoring variable initializers in context of DefUseInspection for lombok features.
|
||||
* It implements the DefUseInspection.IgnoreVariableInitializerSupport interface.
|
||||
*/
|
||||
public class LombokVariableInitializerSupport implements DefUseInspection.IgnoreVariableInitializerSupport {
|
||||
@Override
|
||||
public boolean ignoreVariableInitializer(@NotNull PsiVariable psiVariable) {
|
||||
return psiVariable.hasAnnotation(LombokClassNames.BUILDER_DEFAULT);
|
||||
}
|
||||
}
|
||||
@@ -53,7 +53,6 @@
|
||||
<lang.psiAugmentProvider implementation="de.plushnikov.intellij.plugin.provider.LombokAugmentProvider"/>
|
||||
<lang.jvm.annotationPackageSupport implementation="de.plushnikov.intellij.plugin.provider.LombokAnnotationSupport"/>
|
||||
<lang.jvm.ignoreAnnotationParamSupport implementation="de.plushnikov.intellij.plugin.provider.LombokDefaultAnnotationParamSupport"/>
|
||||
<lang.jvm.ignoreVariableInitializerSupport implementation="de.plushnikov.intellij.plugin.provider.LombokVariableInitializerSupport"/>
|
||||
<lang.jvm.ignoreVariableInitializedBeforeUsageSupport implementation="de.plushnikov.intellij.plugin.provider.LombokVariableInitializedBeforeUsageSupport"/>
|
||||
<lang.jvm.ignoreMethodCallExpressionNPESupport implementation="de.plushnikov.intellij.plugin.provider.LombokMethodCallExpressionNPESupport"/>
|
||||
<implicitUsageProvider implementation="de.plushnikov.intellij.plugin.provider.LombokImplicitUsageProvider"/>
|
||||
|
||||
Reference in New Issue
Block a user