property reference fix

GitOrigin-RevId: e69009827fcfc08d4e57beb3588761c2966ff37c
This commit is contained in:
Olga.Klisho
2020-02-12 11:11:39 +03:00
committed by intellij-monorepo-bot
parent 4d5721b046
commit 5df36f4f86

View File

@@ -59,7 +59,7 @@ public class JUnitConvertTool extends AbstractBaseJavaLocalInspectionTool {
public ProblemDescriptor @Nullable [] checkClass(@NotNull PsiClass psiClass, @NotNull InspectionManager manager, boolean isOnTheFly) {
if (TestNGUtil.inheritsJUnitTestCase(psiClass) || TestNGUtil.containsJunitAnnotations(psiClass)) {
final PsiIdentifier nameIdentifier = psiClass.getNameIdentifier();
ProblemDescriptor descriptor = manager.createProblemDescriptor(nameIdentifier != null ? nameIdentifier : psiClass, ExecutionBundle.message("testcase.can.be.converted.to.testng"),
ProblemDescriptor descriptor = manager.createProblemDescriptor(nameIdentifier != null ? nameIdentifier : psiClass, ExecutionBundle.message("test.case.can.be.converted.to.testng"),
new JUnitConverterQuickFix(),
ProblemHighlightType.GENERIC_ERROR_OR_WARNING, isOnTheFly);
return new ProblemDescriptor[]{descriptor};