Details
-
Enhancement
-
Resolution: Done
-
Major
-
8.0.2.Final
-
None
Description
For safety reason, Enum.values() clones the values array in each invocation. Although the cloning is fast, it creates a lot of garbage (as it is used in every Enum unmarshalling). Cache it avoids cloning it every time.