restore inspection short name to preserve user's profiles (IDEA-CR-15069)

This commit is contained in:
Anna.Kozlova
2016-11-02 18:38:59 +01:00
parent 046ed89901
commit cc8bf39d52
3 changed files with 7 additions and 1 deletions
@@ -1400,7 +1400,7 @@
<localInspection groupPath="Java" language="JAVA" shortName="JUnitDatapoint" bundle="com.siyeh.InspectionGadgetsBundle"
key="junit.datapoint.display.name" implementationClass="com.siyeh.ig.junit.JUnitDatapointInspection"
groupBundle="messages.InspectionsBundle" groupKey="group.names.junit.issues" enabledByDefault="false" level="WARNING"/>
<localInspection groupPath="Java" language="JAVA" suppressId="MessageMissingOnJUnitAssertion" shortName="JUnitAssertsWithoutMessages"
<localInspection groupPath="Java" language="JAVA" suppressId="MessageMissingOnJUnitAssertion" shortName="AssertsWithoutMessages"
bundle="com.siyeh.InspectionGadgetsBundle" key="asserts.without.messages.display.name"
groupBundle="messages.InspectionsBundle" groupKey="group.names.junit.issues" enabledByDefault="false" level="WARNING"
implementationClass="com.siyeh.ig.junit.JUnitAssertsWithoutMessagesInspection"/>
@@ -24,6 +24,12 @@ import java.util.Map;
public class JUnitAssertsWithoutMessagesInspection extends AssertsWithoutMessagesInspection {
@NotNull
@Override
public String getShortName() {
return "AssertsWithoutMessages";
}
@Override
protected Map<String, Integer> getAssertMethods() {
return AssertHint.JUnitCommonAssertNames.COMMON_ASSERT_METHODS;