Duplicate :
|
A DESCRIPTION OF THE REQUEST : The source code for Long.valueOf(String) shows that it returns new Long(parseLong(...)). It really should return Long.valueOf(parseLong(...)) so that it can take advantage of the cache. JUSTIFICATION : More efficient. EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - See above ACTUAL - See above ---------- BEGIN SOURCE ---------- None -- see source code for java.lang.Long ---------- END SOURCE ----------
|