[java] simpler more consistent error message

GitOrigin-RevId: e9a4643b85dcf5d97085e56b7a455b2b8f87869a
This commit is contained in:
Bas Leijdekkers
2022-12-02 16:16:24 +01:00
committed by intellij-monorepo-bot
parent 11d3e39fc0
commit a98eb623e0
2 changed files with 2 additions and 2 deletions

View File

@@ -524,6 +524,7 @@ safevarargs.not.suppress.potentially.unsafe.operations=@SafeVarargs do not suppr
safevarargs.not.applicable.for.reifiable.types=@SafeVarargs is not applicable for reifiable types
type.parameter.has.incompatible.upper.bounds=Type parameter {0} has incompatible upper bounds: {1}
safevarargs.not.allowed.on.methods.with.fixed.arity=@SafeVarargs is not allowed on methods with fixed arity
safevararg.annotation.cannot.be.applied.for.record.component=@SafeVarargs is not allowed on a record component
functional.interface.must.not.be.sealed.error.description=Functional interface can''t be declared as ''{0}''
sealed.type.inheritor.expected.modifiers={0}, {1} or {2} modifiers expected
not.allowed.in.sealed.hierarchy=''{0}'' is not allowed in the sealed hierarchy
@@ -547,5 +548,4 @@ text.class.is.not.accessible={0} is not accessible in current context
text.class.cannot.access=Cannot access {0}
auto.closeable.resource=auto-closeable resource
annotation.type.permits=No permits clause allowed for annotation type
safevararg.annotation.cannot.be.applied.for.record.component=@SafeVarargs annotation cannot be applied for a record component
too.many.array.dimensions=Too many array dimensions

View File

@@ -74,5 +74,5 @@ record Incomplete(@<error descr="Class reference expected">i</error>nt a) {}
record CStyle(int a<error descr="C-style record component declaration is not allowed">[]</error>) {}
record CStyle2(int[] a<error descr="C-style record component declaration is not allowed">[] []</error> ) {}
record JavaStyle(int[] [] a) {}
record SafeVarargComponent(<error descr="@SafeVarargs annotation cannot be applied for a record component">@SafeVarargs</error> int... component) {}
record SafeVarargComponent(<error descr="@SafeVarargs is not allowed on a record component">@SafeVarargs</error> int... component) {}
record ExtendsRecordExplicitly() <error descr="No extends clause allowed for record">extends java.lang.Record</error> {}