Update performance.xml
new Integer() and new Long() is deoprecated in JDK 9.
This commit is contained in:
@ -419,6 +419,7 @@ good.append("This is a long string, which is pre-sized");
|
|||||||
<description>
|
<description>
|
||||||
Calling new Integer() causes memory allocation that can be avoided by the static Integer.valueOf().
|
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.
|
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>
|
</description>
|
||||||
<priority>2</priority>
|
<priority>2</priority>
|
||||||
<properties>
|
<properties>
|
||||||
@ -452,6 +453,7 @@ public class Foo {
|
|||||||
<description>
|
<description>
|
||||||
Calling new Long() causes memory allocation that can be avoided by the static Long.valueOf().
|
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.
|
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>
|
</description>
|
||||||
<priority>2</priority>
|
<priority>2</priority>
|
||||||
<properties>
|
<properties>
|
||||||
|
Reference in New Issue
Block a user