Fix conditional_operator_intention code sample: Family name displayed in the inspections list is "ConditionalOperatorIntention"

This commit is contained in:
Karol Lewandowski 2023-09-05 16:25:36 +02:00
parent 2f296cb613
commit d4c776e7cf

View File

@ -1,5 +1,4 @@
// Copyright 2000-2023 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.intellij.sdk.intention; package org.intellij.sdk.intention;
import com.intellij.codeInsight.intention.IntentionAction; import com.intellij.codeInsight.intention.IntentionAction;
@ -25,7 +24,7 @@ public class ConditionalOperatorConverter extends PsiElementBaseIntentionAction
*/ */
@NotNull @NotNull
public String getText() { public String getText() {
return "SDK Convert ternary operator to if statement"; return getFamilyName();
} }
/** /**
@ -37,7 +36,7 @@ public class ConditionalOperatorConverter extends PsiElementBaseIntentionAction
*/ */
@NotNull @NotNull
public String getFamilyName() { public String getFamilyName() {
return "ConditionalOperatorIntention"; return "SDK: Convert ternary operator to if statement";
} }
/** /**