In the quest for getting rid of warning messages in jdk.hotspot.agent, the time has now come for another major source of deprectation messages, that are trivial to fix and might hide more tricky issues.
This patch handles the "new Integer(42)" pattern of explicit boxing, which is deprecated. I have fixed this using the improved autoboxing functionality in modern Java (e.g. just "42"), wherever possible (which was most places). For some cases, a modern factory method was preferable.
This patch also fixes newInstance() deprecation.
This patch handles the "new Integer(42)" pattern of explicit boxing, which is deprecated. I have fixed this using the improved autoboxing functionality in modern Java (e.g. just "42"), wherever possible (which was most places). For some cases, a modern factory method was preferable.
This patch also fixes newInstance() deprecation.
- blocks
-
JDK-8242808 Fix all remaining deprecation warnings in jdk.hotspot.agent
-
- Resolved
-