mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-163810 Please make shorter "Anonymous type can be replaced with lambda using factory method.." inspection name
This commit is contained in:
+1
-1
@@ -107,7 +107,7 @@ public class AnonymousHasLambdaAlternativeInspection extends BaseJavaBatchLocalI
|
||||
@NotNull
|
||||
@Override
|
||||
public String getName() {
|
||||
return "Replace anonymous class with "+myAlternative.myReplacementMessage;
|
||||
return "Replace with "+myAlternative.myReplacementMessage;
|
||||
}
|
||||
|
||||
@Nls
|
||||
|
||||
@@ -819,7 +819,7 @@
|
||||
groupKey="group.names.performance.issues" enabledByDefault="false" level="WARNING"
|
||||
implementationClass="com.intellij.codeInspection.CollectionAddAllCanBeReplacedWithConstructorInspection"
|
||||
displayName="Collection.addAll() can be replaced with parametrized constructor"/>
|
||||
<localInspection groupPath="Java" language="JAVA" shortName="AnonymousHasLambdaAlternative" displayName="Anonymous type can be replaced with lambda using factory method or special constructor"
|
||||
<localInspection groupPath="Java" language="JAVA" shortName="AnonymousHasLambdaAlternative" displayName="Anonymous type has shorter lambda alternative"
|
||||
groupKey="group.names.language.level.specific.issues.and.migration.aids" groupBundle="messages.InspectionsBundle" enabledByDefault="true" level="WARNING"
|
||||
implementationClass="com.intellij.codeInspection.AnonymousHasLambdaAlternativeInspection" />
|
||||
<localInspection groupPath="Java" language="JAVA" shortName="Java8CollectionsApi"
|
||||
|
||||
Reference in New Issue
Block a user