mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
merged CVS and Subversion versions
This commit is contained in:
+2
-3
@@ -62,12 +62,11 @@ public class ClassNamePrefixedWithPackageNameInspection extends ClassInspection
|
||||
currentPackageName = tokenizer.nextToken();
|
||||
}
|
||||
|
||||
final String packageName = lastPackageName;
|
||||
if (packageName == null) {
|
||||
if (lastPackageName == null) {
|
||||
return;
|
||||
}
|
||||
final String lowercaseClassName = className.toLowerCase();
|
||||
final String lowercasePackageName = packageName.toLowerCase();
|
||||
final String lowercasePackageName = lastPackageName.toLowerCase();
|
||||
if (!lowercaseClassName.startsWith(lowercasePackageName)) {
|
||||
return;
|
||||
}
|
||||
|
||||
+1
-1
@@ -8,6 +8,7 @@ import com.siyeh.ig.*;
|
||||
import com.siyeh.ig.fixes.RenameFix;
|
||||
|
||||
public class MethodNameSameAsClassNameInspection extends MethodInspection {
|
||||
private final RenameFix fix = new RenameFix();
|
||||
|
||||
public String getDisplayName() {
|
||||
return "Method name same as class name";
|
||||
@@ -18,7 +19,6 @@ public class MethodNameSameAsClassNameInspection extends MethodInspection {
|
||||
}
|
||||
|
||||
protected InspectionGadgetsFix buildFix(PsiElement location) {
|
||||
final RenameFix fix = new RenameFix();
|
||||
return fix;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user