[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

@@ -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> {}