inline to anonymous: change wording (IDEA-152534)

This commit is contained in:
Anna Kozlova
2016-03-04 17:00:37 +01:00
parent e641d561e9
commit b303f46243
2 changed files with 2 additions and 2 deletions
@@ -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)) {
@@ -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 {