Skip to content

Use convenience factory methods for collections#143

Open
marschall wants to merge 1 commit intoeclipse-ee4j:masterfrom
marschall:subclass
Open

Use convenience factory methods for collections#143
marschall wants to merge 1 commit intoeclipse-ee4j:masterfrom
marschall:subclass

Conversation

@marschall
Copy link
Copy Markdown
Contributor

Use convenience factory methods for collections instead of double brace initialization.

Use convenience factory methods for collections instead of double brace initialization.
@marschall
Copy link
Copy Markdown
Contributor Author

Convenience factory methods were added with JEP-269 in Java 9. Since our tests are Java 9 and the only users are Java 9 this should not be an issue.

Double brace initialization is generally frowned upon

Copy link
Copy Markdown
Member

@jbescos jbescos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

2 participants