mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
inspections: unused assignment can be suppressed with "unused"
This commit is contained in:
+7
@@ -25,6 +25,7 @@ import com.intellij.util.containers.ContainerUtil;
|
||||
import gnu.trove.THashSet;
|
||||
import org.jetbrains.annotations.NonNls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import javax.swing.*;
|
||||
import javax.swing.event.ChangeEvent;
|
||||
@@ -55,6 +56,12 @@ public class DefUseInspectionBase extends BaseJavaBatchLocalInspectionTool {
|
||||
};
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public String getAlternativeID() {
|
||||
return "unused";
|
||||
}
|
||||
|
||||
private void checkCodeBlock(final PsiCodeBlock body,
|
||||
final ProblemsHolder holder,
|
||||
final boolean isOnTheFly) {
|
||||
|
||||
Reference in New Issue
Block a user