mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup static final constants
This commit is contained in:
+1
-2
@@ -46,7 +46,6 @@ import java.util.regex.Pattern;
|
||||
public class DependsOnGroupsInspection extends BaseJavaLocalInspectionTool {
|
||||
private static final Logger LOGGER = Logger.getInstance("TestNG Runner");
|
||||
private static final Pattern PATTERN = Pattern.compile("\"([a-zA-Z0-9_\\-\\(\\)]*)\"");
|
||||
private static final ProblemDescriptor[] EMPTY = new ProblemDescriptor[0];
|
||||
|
||||
public JDOMExternalizableStringList groups = new JDOMExternalizableStringList();
|
||||
@NonNls public static String SHORT_NAME = "groupsTestNG";
|
||||
@@ -98,7 +97,7 @@ public class DependsOnGroupsInspection extends BaseJavaLocalInspectionTool {
|
||||
if (!psiClass.getContainingFile().isWritable()) return null;
|
||||
|
||||
PsiAnnotation[] annotations = TestNGUtil.getTestNGAnnotations(psiClass);
|
||||
if (annotations.length == 0) return EMPTY;
|
||||
if (annotations.length == 0) return ProblemDescriptor.EMPTY_ARRAY;
|
||||
|
||||
List<ProblemDescriptor> problemDescriptors = new ArrayList<ProblemDescriptor>();
|
||||
for (PsiAnnotation annotation : annotations) {
|
||||
|
||||
+3
-4
@@ -36,9 +36,8 @@ public class DependsOnMethodInspection extends BaseJavaLocalInspectionTool
|
||||
{
|
||||
private static final Logger LOGGER = Logger.getInstance("TestNG Runner");
|
||||
private static final Pattern PATTERN = Pattern.compile("\"([a-zA-Z1-9_\\(\\)]*)\"");
|
||||
private static final ProblemDescriptor[] EMPTY = new ProblemDescriptor[0];
|
||||
|
||||
@NotNull
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public String getGroupDisplayName() {
|
||||
return "TestNG";
|
||||
@@ -69,7 +68,7 @@ public class DependsOnMethodInspection extends BaseJavaLocalInspectionTool
|
||||
if (!psiClass.getContainingFile().isWritable()) return null;
|
||||
|
||||
PsiAnnotation[] annotations = TestNGUtil.getTestNGAnnotations(psiClass);
|
||||
if(annotations.length == 0) return EMPTY;
|
||||
if(annotations.length == 0) return ProblemDescriptor.EMPTY_ARRAY;
|
||||
List<ProblemDescriptor> problemDescriptors = new ArrayList<ProblemDescriptor>();
|
||||
|
||||
for (PsiAnnotation annotation : annotations) {
|
||||
|
||||
Reference in New Issue
Block a user