mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
inline to anonymous: change wording (IDEA-152534)
This commit is contained in:
+1
-1
@@ -256,7 +256,7 @@ public class InlineToAnonymousClassHandler extends JavaInlineActionHandler {
|
||||
}
|
||||
else if (method.findSuperMethods().length == 0) {
|
||||
if (!ReferencesSearch.search(method).forEach(new AllowedUsagesProcessor(psiClass))) {
|
||||
return "Class cannot be inlined because it has usages of methods not inherited from its superclass or interface";
|
||||
return "Class cannot be inlined because there are usages of its methods not inherited from its superclass or interface";
|
||||
}
|
||||
}
|
||||
if (method.hasModifierProperty(PsiModifier.STATIC)) {
|
||||
|
||||
+1
-1
@@ -261,7 +261,7 @@ public class InlineToAnonymousClassTest extends LightRefactoringTestCase {
|
||||
}
|
||||
|
||||
public void testNoInlineMethodUsage() throws Exception {
|
||||
doTestNoInline("Class cannot be inlined because it has usages of methods not inherited from its superclass or interface");
|
||||
doTestNoInline("Class cannot be inlined because there are usages of its methods not inherited from its superclass or interface");
|
||||
}
|
||||
|
||||
public void testNoInlineFieldUsage() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user