RFR: 8257512: Remove use of deprecated primitive constructors in JavaFX [v5]
Ambarish Rapte
arapte at openjdk.java.net
Thu Mar 11 19:43:27 UTC 2021
> 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:
correct autobox missed in previous commit
-------------
Changes:
- all: https://git.openjdk.java.net/jfx/pull/423/files
- new: https://git.openjdk.java.net/jfx/pull/423/files/b104b373..c90b0cc1
Webrevs:
- full: https://webrevs.openjdk.java.net/?repo=jfx&pr=423&range=04
- incr: https://webrevs.openjdk.java.net/?repo=jfx&pr=423&range=03-04
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
Patch: https://git.openjdk.java.net/jfx/pull/423.diff
Fetch: git fetch https://git.openjdk.java.net/jfx pull/423/head:pull/423
PR: https://git.openjdk.java.net/jfx/pull/423
More information about the openjfx-dev
mailing list