Skip to content

Use Class#arrayType() where feasible #31002

Closed
@sbrannen

Description

@sbrannen

Java 12 introduced java.lang.Class#arrayType() as a convenience method for Array.newInstance(type, 0).getClass(). To simplify our code and to benefit from potential future enhancements to that implementation in the JDK, we should use that new method where feasible.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions