Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Class#arrayType() where feasible #31002

Closed
sbrannen opened this issue Aug 7, 2023 · 0 comments
Closed

Use Class#arrayType() where feasible #31002

sbrannen opened this issue Aug 7, 2023 · 0 comments
Assignees
Labels
type: enhancement A general enhancement
Milestone

Comments

@sbrannen
Copy link
Member

sbrannen commented Aug 7, 2023

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.

@sbrannen sbrannen added the type: enhancement A general enhancement label Aug 7, 2023
@sbrannen sbrannen added this to the 6.1.0-M4 milestone Aug 7, 2023
@sbrannen sbrannen self-assigned this Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant