Update performance.xml

new Integer() and new Long() is deoprecated in JDK 9.
This commit is contained in:
Tobias Weimer
2017-12-19 20:55:48 +01:00
committed by GitHub
parent fbd9306889
commit 766565a0bf

View File

@ -419,6 +419,7 @@ good.append("This is a long string, which is pre-sized");
<description>
Calling new Integer() causes memory allocation that can be avoided by the static Integer.valueOf().
It makes use of an internal cache that recycles earlier instances making it more memory efficient.
Note that new Integer() is deprecated since JDK 9 for that reason.
</description>
<priority>2</priority>
<properties>
@ -452,6 +453,7 @@ public class Foo {
<description>
Calling new Long() causes memory allocation that can be avoided by the static Long.valueOf().
It makes use of an internal cache that recycles earlier instances making it more memory efficient.
Note that new Long() is deprecated since JDK 9 for that reason.
</description>
<priority>2</priority>
<properties>