commit | 4fb706bb27b0964a40122a032123a533d5929e18 | [log] [tgz] |
---|---|---|
author | Alex Blewitt <alex.blewitt@gmail.com> | Tue Mar 15 21:30:44 2016 +0000 |
committer | Alex Blewitt <alex.blewitt@gmail.com> | Tue Mar 15 21:32:53 2016 +0000 |
tree | 007d6f0a1203b9d71f5273082fc7b469cad77b9b | |
parent | a1035a583df8bb80451f8ed6892fbfd00ee58ac4 [diff] |
489660: Change new wrapper classes to use valueOf instead Calling new Integer() results in the creation of a new object instance, but the Java implementation of Integer has a cache for small valued objects that is consulted when calling with .valueOf() instead. Replace wrapper classes that are instantiated with an equivalent .valueOf() call instead. Change-Id: I0fbaa103e0f53f6ee3a7669d920239f0862684db Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>