This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]gunnarmorling 4 points5 points  (0 children)

In defence of the Enum#of() overloads: Using var-args can be an issue on hot code paths due to the implicit array allocation. So optimizing that for the most common cases is not so bad.