mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix wording for record constructor access level message (IDEA-245318)
GitOrigin-RevId: cff34666ed69bfd0a29ab75d1902b7a473b37bb7
This commit is contained in:
committed by
intellij-monorepo-bot
parent
003f38f1d3
commit
f5f8de6460
@@ -423,7 +423,7 @@ record.constructor.call.in.canonical=Canonical constructor cannot delegate to an
|
||||
record.no.constructor.call.in.non.canonical=Non-canonical record constructor must delegate to another constructor
|
||||
record.special.method.type.parameters={0} cannot have type parameters
|
||||
record.special.method.non.public={0} must be ''public''
|
||||
record.special.method.stronger.access={0} access level cannot be stronger than the record access level (''{1}'')
|
||||
record.special.method.stronger.access={0} access level cannot be more restrictive than the record access level (''{1}'')
|
||||
record.special.method.throws={0} cannot declare thrown exceptions
|
||||
record.canonical.constructor=Canonical constructor
|
||||
record.compact.constructor=Compact constructor
|
||||
|
||||
+7
-7
@@ -3,13 +3,13 @@ class Outer {
|
||||
public PublicRecord1 {}
|
||||
}
|
||||
public record PublicRecord2() {
|
||||
protected <error descr="Canonical constructor access level cannot be stronger than the record access level ('public')">PublicRecord2</error>() {}
|
||||
protected <error descr="Canonical constructor access level cannot be more restrictive than the record access level ('public')">PublicRecord2</error>() {}
|
||||
}
|
||||
public record PublicRecord3() {
|
||||
<error descr="Canonical constructor access level cannot be stronger than the record access level ('public')">PublicRecord3</error>() {}
|
||||
<error descr="Canonical constructor access level cannot be more restrictive than the record access level ('public')">PublicRecord3</error>() {}
|
||||
}
|
||||
public record PublicRecord4() {
|
||||
private <error descr="Compact constructor access level cannot be stronger than the record access level ('public')">PublicRecord4</error> {}
|
||||
private <error descr="Compact constructor access level cannot be more restrictive than the record access level ('public')">PublicRecord4</error> {}
|
||||
}
|
||||
protected record ProtectedRecord1() {
|
||||
public ProtectedRecord1 {}
|
||||
@@ -18,10 +18,10 @@ class Outer {
|
||||
protected ProtectedRecord2() {}
|
||||
}
|
||||
protected record ProtectedRecord3() {
|
||||
<error descr="Canonical constructor access level cannot be stronger than the record access level ('protected')">ProtectedRecord3</error>() {}
|
||||
<error descr="Canonical constructor access level cannot be more restrictive than the record access level ('protected')">ProtectedRecord3</error>() {}
|
||||
}
|
||||
protected record ProtectedRecord4() {
|
||||
private <error descr="Compact constructor access level cannot be stronger than the record access level ('protected')">ProtectedRecord4</error> {}
|
||||
private <error descr="Compact constructor access level cannot be more restrictive than the record access level ('protected')">ProtectedRecord4</error> {}
|
||||
}
|
||||
record PackageRecord1() {
|
||||
public PackageRecord1 {}
|
||||
@@ -33,7 +33,7 @@ class Outer {
|
||||
PackageRecord3() {}
|
||||
}
|
||||
record PackageRecord4() {
|
||||
private <error descr="Compact constructor access level cannot be stronger than the record access level ('package-private')">PackageRecord4</error> {}
|
||||
private <error descr="Compact constructor access level cannot be more restrictive than the record access level ('package-private')">PackageRecord4</error> {}
|
||||
}
|
||||
private record PrivateRecord1() {
|
||||
public PrivateRecord1 {}
|
||||
@@ -59,7 +59,7 @@ class Outer {
|
||||
LocalRecord3() {}
|
||||
}
|
||||
record LocalRecord4() {
|
||||
private <error descr="Compact constructor access level cannot be stronger than the record access level ('package-private')">LocalRecord4</error> {}
|
||||
private <error descr="Compact constructor access level cannot be more restrictive than the record access level ('package-private')">LocalRecord4</error> {}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user