Integrated: 8257512: Remove use of deprecated primitive constructors in JavaFX
Ambarish Rapte
arapte at openjdk.java.net
Fri Mar 12 04:20:11 UTC 2021
On Wed, 10 Mar 2021 17:15:50 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};`
This pull request has now been integrated.
Changeset: 92d62322
Author: Ambarish Rapte <arapte at openjdk.org>
URL: https://git.openjdk.java.net/jfx/commit/92d62322
Stats: 75 lines in 27 files changed: 0 ins; 0 del; 75 mod
8257512: Remove use of deprecated primitive constructors in JavaFX
Reviewed-by: kcr, nlisker
-------------
PR: https://git.openjdk.java.net/jfx/pull/423
More information about the openjfx-dev
mailing list