Java inspection: Rename the inspection "Replace Equality with Equals" to a noun-based...
authorPavel Dolgov <pavel.dolgov@jetbrains.com>
Wed, 10 Aug 2016 13:15:15 +0000 (16:15 +0300)
committerPavel Dolgov <pavel.dolgov@jetbrains.com>
Wed, 10 Aug 2016 13:43:03 +0000 (16:43 +0300)
plugins/InspectionGadgets/InspectionGadgetsAnalysis/src/META-INF/InspectionGadgets.xml
plugins/InspectionGadgets/InspectionGadgetsAnalysis/src/com/siyeh/InspectionGadgetsBundle.properties

index 7ee0e7f5993d7ba75c129ec3359f46f814e714f9..e34b2ad25ad92aa819f10bdb8f0de679dd24a379 100644 (file)
                      key="if.can.be.assertion.name" groupBundle="messages.InspectionsBundle"
                      groupKey="group.names.control.flow.issues" enabledByDefault="true" level="INFORMATION"
                      implementationClass="com.siyeh.ig.asserttoif.IfCanBeAssertionInspection"/>
-    <localInspection groupPath="Java" language="JAVA" shortName="EqualityOperatorComparesObjects" bundle="com.siyeh.InspectionGadgetsBundle"
-                     key="equality.operator.compares.objects.name" groupBundle="messages.InspectionsBundle"
-                     groupKey="group.names.control.flow.issues" enabledByDefault="true" level="INFORMATION"
-                     implementationClass="com.siyeh.ig.equality.EqualityOperatorComparesObjectsInspection"/>
 
     <!--group.names.data.flow.issues-->
     <localInspection groupPath="Java" language="JAVA" shortName="BooleanVariableAlwaysNegated" bundle="com.siyeh.InspectionGadgetsBundle"
                      key="add.array.creation.expression.name" groupBundle="messages.InspectionsBundle"
                      groupKey="group.names.code.style.issues" enabledByDefault="true" level="INFORMATION"
                      implementationClass="com.siyeh.ig.style.AddArrayCreationExpressionInspection"/>
+    <localInspection groupPath="Java" language="JAVA" shortName="EqualityOperatorComparesObjects" bundle="com.siyeh.InspectionGadgetsBundle"
+                     key="equality.operator.compares.objects.name" groupBundle="messages.InspectionsBundle"
+                     groupKey="group.names.code.style.issues" enabledByDefault="true" level="INFORMATION"
+                     implementationClass="com.siyeh.ig.equality.EqualityOperatorComparesObjectsInspection"/>
 
     <!--group.names.threading.issues-->
     <localInspection groupPath="Java" language="JAVA" suppressId="AccessToNonThreadSafeStaticField" shortName="AccessToNonThreadSafeStaticFieldFromInstance"
index e26a78e498465e7b647043d58cb3d98fa46f2413..f514ffe558d327180bd36fc35a9ca41b1209b30a 100644 (file)
@@ -2174,8 +2174,8 @@ assertion.can.be.if.name=Assertion can be replaced with if statement
 assert.can.be.if.quickfix=Replace 'assert' with 'if' statement
 if.can.be.assertion.name=If statement can be replaced with assertion
 if.can.be.assertion.quickfix=Replace 'if' with 'assert' statement
-equality.operator.compares.objects.name=Equality operator compares objects
-equality.operator.compares.objects.descriptor=Equality operator ''{0}'' compares objects
+equality.operator.compares.objects.name=Objects compared with '==' or '!='
+equality.operator.compares.objects.descriptor=Objects compared with ''{0}''
 equality.operator.compares.objects.quickfix=Replace ''{0}'' with ''{1}equals()''
 equality.operator.compares.objects.family.quickfix=Replace equality operator with equals()
 equality.operator.compares.objects.safe.quickfix=Replace ''{0}'' with safe ''{1}equals()''