Java: better error reporting and quick fixes for the diamond operator and generic array creation (IDEA-299195)

GitOrigin-RevId: baa354ad9132bf6d939f19ecd2cfd6cfc56466a2
This commit is contained in:
Bas Leijdekkers
2024-01-08 15:11:58 +01:00
committed by intellij-monorepo-bot
parent 7e1c830a1a
commit ab928055bb
12 changed files with 78 additions and 35 deletions

View File

@@ -69,9 +69,10 @@ generics.reference.parameters.not.allowed=Reference parameters are not allowed h
foreach.not.applicable=Foreach not applicable to type ''{0}''
illegal.to.access.static.member.from.enum.constructor.or.instance.initializer=Accessing {0, choice, 1#static field|2#enum constant} from enum {1, choice, 1#constructor|2#instance field initializer|3#instance initializer} is not allowed
enum.types.cannot.be.instantiated=Enum types cannot be instantiated
generic.array.creation=Generic array creation
cannot.create.array.with.empty.diamond=Cannot create array with '<>'
array.creation.with.type.arguments=Cannot create array with type arguments
generic.array.creation=Generic array creation not allowed
cannot.create.array.with.empty.diamond=Array creation with '<>' not allowed
array.creation.with.type.arguments=Array creation with type arguments not allowed
diamond.operator.not.allowed.here=Diamond operator is not allowed here
generics.enum.may.not.have.type.parameters=Enum may not have type parameters
generics.annotation.members.may.not.have.type.parameters=@interface members may not have type parameters
annotation.may.not.have.type.parameters=@interface may not have type parameters