[java-inspections] ClassCanBeRecord: use JAVA_25 project description in test

Also: make name of one of the tests consistent with the other ones.

GitOrigin-RevId: 7b8d44499f2b5c5a4717ba070a2c48165a0e4ed3
This commit is contained in:
Bartek Pacia
2025-07-03 11:20:39 +00:00
committed by intellij-monorepo-bot
parent f8426a3889
commit ba61f2fd8f
@@ -11,7 +11,7 @@ import org.jetbrains.annotations.NotNull;
import static com.intellij.codeInspection.classCanBeRecord.ClassCanBeRecordInspection.ConversionStrategy;
public class ClassCanBeRecordFlexibleConstructorBodiesTest extends LightQuickFixParameterizedTestCase {
public class ClassCanBeRecordInspectionFlexibleConstructorBodiesTest extends LightQuickFixParameterizedTestCase {
@Override
protected LocalInspectionTool @NotNull [] configureLocalInspectionTools() {
ClassCanBeRecordInspection inspection = new ClassCanBeRecordInspection(ConversionStrategy.DO_NOT_SUGGEST, true);
@@ -20,7 +20,7 @@ public class ClassCanBeRecordFlexibleConstructorBodiesTest extends LightQuickFix
@Override
protected @NotNull LightProjectDescriptor getProjectDescriptor() {
return LightJavaCodeInsightFixtureTestCase.JAVA_LATEST;
return LightJavaCodeInsightFixtureTestCase.JAVA_25;
}
@Override