Long valueOf instead of new Long

Otávio Gonçalves de Santana otaviojava at java.net
Wed Jun 18 12:11:16 UTC 2014


Could anyone see my this path, please?



On Sat, Jun 14, 2014 at 10:46 AM, Otávio Gonçalves de Santana <
otaviojava at java.net> wrote:

> Reason: The Long class has cache and using it, will save memory and will
> faster than using create new instance of Long.
>
> webrev:
> https://dl.dropboxusercontent.com/u/16109193/open_jdk/long_value_of.zip
>
> similar: https://bugs.openjdk.java.net/browse/JDK-8044461
> --
> Otávio Gonçalves de Santana
>
> blog:     http://otaviosantana.blogspot.com.br/
> twitter: http://twitter.com/otaviojava
> site:     http://www.otaviojava.com.br
> (11)     98255-3513
>
>


-- 
Atenciosamente.

Otávio Gonçalves de Santana

blog:     http://otaviosantana.blogspot.com.br/
twitter: http://twitter.com/otaviojava
site:     http://www.otaviojava.com.br
(11)     98255-3513



More information about the core-libs-dev mailing list