Details
-
Improvement
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
None
Description
Instead of using new Integer(19), the best way of creating a wrapper class is Integer.valueOf(19) because it gives the JVM the chance to cache low range values, etc.
The change affects two classes: AnalyticsContext and MetricRecord. The patch is attached to this issue.