mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java-inspections] IDEA-371645 ClassCanBeRecord: change option phrasing and change default option
See the linked ticket for more discussion. GitOrigin-RevId: 7ebc61d24678bb8ed5e5f71507d12802c39b46ff
This commit is contained in:
committed by
intellij-monorepo-bot
parent
896afe2452
commit
c1c102bcd6
+1
-1
@@ -38,7 +38,7 @@ import static com.intellij.codeInspection.options.OptPane.*;
|
||||
public final class ClassCanBeRecordInspection extends BaseInspection implements CleanupLocalInspectionTool {
|
||||
private static final List<String> IGNORED_ANNOTATIONS = List.of("io.micronaut.*", "jakarta.*", "javax.*", "org.springframework.*");
|
||||
|
||||
public @NotNull ConversionStrategy myConversionStrategy = SHOW_AFFECTED_MEMBERS;
|
||||
public @NotNull ConversionStrategy myConversionStrategy = DO_NOT_SUGGEST;
|
||||
public boolean suggestAccessorsRenaming = true;
|
||||
|
||||
public final List<@NlsSafe String> myIgnoredAnnotations = new ArrayList<>();
|
||||
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// "Convert to record class" "true-preview"
|
||||
|
||||
record Person(String name, int age) {
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
// "Convert to record class" "true-preview"
|
||||
|
||||
class Person<caret> {
|
||||
private final String name;
|
||||
private final int age;
|
||||
|
||||
Person(String name, int age) {
|
||||
this.name = name;
|
||||
this.age = age;
|
||||
}
|
||||
}
|
||||
@@ -1473,7 +1473,7 @@ intention.family.name.convert.record.to.class=Convert record to class
|
||||
class.can.be.record.display.name=Class can be record class
|
||||
class.can.be.record.quick.fix=Convert to record class
|
||||
class.can.be.record.suggest.renaming.accessors=Suggest renaming accessor methods
|
||||
class.can.be.record.record.highlight.when.semantics.change=Disable highlighting if members become more accessible
|
||||
class.can.be.record.record.highlight.when.semantics.change=Don't report if members will become more accessible
|
||||
class.can.be.record.record.highlight.when.semantics.change.description=Quick-fix will still be available
|
||||
class.can.be.record.suppress.conversion.if.annotated=Suppress conversion if the class is annotated by:
|
||||
class.can.be.record.suppress.conversion.if.annotated.fix.name=Suppress record conversion if annotated by ''{0}''
|
||||
|
||||
Reference in New Issue
Block a user