mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
make getDisplayName() abstract so its implementation cannot be forgotten
add getDisplayName() to "String literal concatenation missing whitespace" inspection
This commit is contained in:
@@ -61,6 +61,11 @@ public abstract class BaseInspection extends BaseJavaLocalInspectionTool {
|
||||
return m_shortName;
|
||||
}
|
||||
|
||||
@Nls
|
||||
@NotNull
|
||||
@Override
|
||||
public abstract String getDisplayName();
|
||||
|
||||
@Override
|
||||
@Nls
|
||||
@NotNull
|
||||
|
||||
+8
@@ -22,6 +22,7 @@ import com.siyeh.InspectionGadgetsBundle;
|
||||
import com.siyeh.ig.BaseInspection;
|
||||
import com.siyeh.ig.BaseInspectionVisitor;
|
||||
import com.siyeh.ig.psiutils.ParenthesesUtils;
|
||||
import org.jetbrains.annotations.Nls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import javax.swing.*;
|
||||
@@ -34,6 +35,13 @@ public class StringConcatenationMissingWhitespaceInspection extends BaseInspecti
|
||||
@SuppressWarnings("PublicField")
|
||||
public boolean ignoreNonStringLiterals = false;
|
||||
|
||||
@Nls
|
||||
@NotNull
|
||||
@Override
|
||||
public String getDisplayName() {
|
||||
return InspectionGadgetsBundle.message("string.concatenation.missing.whitespace.display.name");
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
protected String buildErrorString(Object... infos) {
|
||||
|
||||
Reference in New Issue
Block a user