Character, Byte, Short valueOf instead of new instance

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


Could anyone see my this path, please?



On Sat, Jun 14, 2014 at 1:38 PM, Otávio Gonçalves de Santana <
otaviojava at java.net> wrote:

> Reason: The Character, Byte, Short classes have cache and using it, will
> save memory and will faster than using create new instance.
>
> webrev:
> https://dl.dropboxusercontent.com/u/16109193/open_jdk/byte_short_character_value_of.zip
>
> similar: https://bugs.openjdk.java.net/browse/JDK-8044461
>
> --
> 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
>
>


-- 
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