Skip to content

🧹 Use diamond operator for ArrayList initialization in GroovyCompiler#371

Merged
keeganwitt merged 1 commit intogroovy:masterfrom
keeganwitt:refactor-groovy-compiler-diamond-operator-4353927056530802122
Mar 24, 2026
Merged

🧹 Use diamond operator for ArrayList initialization in GroovyCompiler#371
keeganwitt merged 1 commit intogroovy:masterfrom
keeganwitt:refactor-groovy-compiler-diamond-operator-4353927056530802122

Conversation

@keeganwitt
Copy link
Copy Markdown
Member

This change replaces a raw ArrayList initialization with the diamond operator in the setupLinks method of GroovyCompiler.java. This improves maintainability and follows modern Java practices. The @SuppressWarnings annotation has been removed as it is no longer necessary.

This change replaces a raw ArrayList initialization with the diamond operator in the setupLinks method of GroovyCompiler.java. This improves maintainability and follows modern Java practices. The @SuppressWarnings annotation has been removed as it is no longer necessary.

Co-authored-by: keeganwitt <64612+keeganwitt@users.noreply.github.com>
@keeganwitt keeganwitt marked this pull request as ready for review March 24, 2026 04:33
@keeganwitt keeganwitt merged commit 8e6bb1a into groovy:master Mar 24, 2026
5 checks passed
@keeganwitt keeganwitt deleted the refactor-groovy-compiler-diamond-operator-4353927056530802122 branch March 24, 2026 04:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant