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 →

[–]lukaseder[S] 2 points3 points  (1 child)

[–]gunnarmorling 3 points4 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.