diff --git a/java/java-psi-impl/src/messages/JavaErrorBundle.properties b/java/java-psi-impl/src/messages/JavaErrorBundle.properties
index b9cfadf5eae1..9cfb98feb1a0 100644
--- a/java/java-psi-impl/src/messages/JavaErrorBundle.properties
+++ b/java/java-psi-impl/src/messages/JavaErrorBundle.properties
@@ -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
diff --git a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlightingRecords/RecordConstructorAccessJava15.java b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlightingRecords/RecordConstructorAccessJava15.java
index d692dec35400..c07811ba83bb 100644
--- a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlightingRecords/RecordConstructorAccessJava15.java
+++ b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlightingRecords/RecordConstructorAccessJava15.java
@@ -3,13 +3,13 @@ class Outer {
public PublicRecord1 {}
}
public record PublicRecord2() {
- protected PublicRecord2() {}
+ protected PublicRecord2() {}
}
public record PublicRecord3() {
- PublicRecord3() {}
+ PublicRecord3() {}
}
public record PublicRecord4() {
- private PublicRecord4 {}
+ private PublicRecord4 {}
}
protected record ProtectedRecord1() {
public ProtectedRecord1 {}
@@ -18,10 +18,10 @@ class Outer {
protected ProtectedRecord2() {}
}
protected record ProtectedRecord3() {
- ProtectedRecord3() {}
+ ProtectedRecord3() {}
}
protected record ProtectedRecord4() {
- private ProtectedRecord4 {}
+ private ProtectedRecord4 {}
}
record PackageRecord1() {
public PackageRecord1 {}
@@ -33,7 +33,7 @@ class Outer {
PackageRecord3() {}
}
record PackageRecord4() {
- private PackageRecord4 {}
+ private PackageRecord4 {}
}
private record PrivateRecord1() {
public PrivateRecord1 {}
@@ -59,7 +59,7 @@ class Outer {
LocalRecord3() {}
}
record LocalRecord4() {
- private LocalRecord4 {}
+ private LocalRecord4 {}
}
}
}
\ No newline at end of file