diff --git a/java/java-analysis-impl/resources/messages/InspectionGadgetsBundle.properties b/java/java-analysis-impl/resources/messages/InspectionGadgetsBundle.properties index dfb6a642f822..cab5ccfd3d8a 100644 --- a/java/java-analysis-impl/resources/messages/InspectionGadgetsBundle.properties +++ b/java/java-analysis-impl/resources/messages/InspectionGadgetsBundle.properties @@ -2013,7 +2013,7 @@ property.value.set.to.itself.display.name=Property value set to itself equals.with.itself.display.name='equals()' called on itself equals.with.itself.problem.descriptor=#ref() called on itself equals.with.itself.option=Ignore possible contract testing -equals.with.itself.option.description=When checked, some cases like assertEquals(myObj, myObj) will not be reported, as this could be an intended code to test whether the equals() method is implemented correctly. +equals.with.itself.option.description=When checked, some cases like assertEquals(myObj, myObj) will not be reported, to avoid warnings on tests checking the correctness of the equals() method. junit4.method.naming.convention.element.description=JUnit 4+ test method junit3.method.naming.convention.element.description=JUnit 3 test method introduce.holder.class.quickfix=Introduce holder class diff --git a/java/java-analysis-impl/src/com/siyeh/ig/bugs/EqualsWithItselfInspection.java b/java/java-analysis-impl/src/com/siyeh/ig/bugs/EqualsWithItselfInspection.java index d016889205d7..2f8896093d6a 100644 --- a/java/java-analysis-impl/src/com/siyeh/ig/bugs/EqualsWithItselfInspection.java +++ b/java/java-analysis-impl/src/com/siyeh/ig/bugs/EqualsWithItselfInspection.java @@ -4,6 +4,7 @@ package com.siyeh.ig.bugs; import com.intellij.codeInspection.LocalQuickFix; import com.intellij.codeInspection.UpdateInspectionOptionFix; import com.intellij.codeInspection.options.OptPane; +import com.intellij.openapi.util.text.HtmlChunk; import com.intellij.psi.*; import com.intellij.psi.util.PsiUtil; import com.intellij.psi.util.TypeConversionUtil; @@ -85,7 +86,8 @@ public final class EqualsWithItselfInspection extends BaseInspection { public @NotNull OptPane getOptionsPane() { return pane( checkbox("ignoreNonFinalClassesInTest", InspectionGadgetsBundle.message( - "equals.with.itself.option")).description(InspectionGadgetsBundle.message("equals.with.itself.option.description"))); + "equals.with.itself.option")) + .description(HtmlChunk.raw(InspectionGadgetsBundle.message("equals.with.itself.option.description")))); } @NotNull