RFR: 8257512: Remove use of deprecated primitive constructors in JavaFX [v4]
Kevin Rushforth
kcr at openjdk.java.net
Thu Mar 11 13:41:14 UTC 2021
On Thu, 11 Mar 2021 07:41:23 GMT, Ambarish Rapte <arapte at openjdk.org> wrote:
>> The following primitive constructors were deprecated in JDK 9 and are deprecated for removal in JDK 16.
>>
>> java.lang.Byte
>> java.lang.Short
>> java.lang.Integer
>> java.lang.Long
>> java.lang.Float
>> java.lang.Double
>> java.lang.Character
>> java.lang.Boolean
>>
>> This change removes call to the primitive constructors with the `valueOf()` factory method of respective class.
>> Calls like the following to create array get autoboxed so it does not require a change.
>>
>> `Double dArr[] = new Double[] {10.1, 20.2};`
>
> Ambarish Rapte has updated the pull request incrementally with one additional commit since the last revision:
>
> some more autoboxing
Marked as reviewed by kcr (Lead).
-------------
PR: https://git.openjdk.java.net/jfx/pull/423
More information about the openjfx-dev
mailing list