I\'m consolidating code written by two different people and notice that casting a String value into a Long has been done in two different ways.
Coder #1 has done t
This is the PMD plugin out put which is run on eclipse
Code I checked is
Long l = new Long("123456");
In JDK 1.5, calling new Long() causes memory allocation. Long.valueOf() is more memory friendly.