JDK-8240689 : Remove the JavaBeanXxxPropertyBuilders constructors
  • Type: CSR
  • Component: javafx
  • Sub-Component: base
  • Priority: P4
  • Status: Closed
  • Resolution: Approved
  • Fix Versions: openjfx15
  • Submitted: 2020-03-06
  • Updated: 2020-03-09
  • Resolved: 2020-03-07
Related Reports
CSR :  
Description
Summary
-------

The JavaBeanXxxPropertyBuilders constructors were deprecated for removal in JDK-8229472 (CSR: JDK-8233704). They can now be removed by making them private.

Problem
-------

The constructors are marked as deprecated for removal. They need to be removed from the public API.

Solution
--------

Make the constructors private and remove the @Deprecated annotation.

Specification
-------------

The default constructor for all `JavaBeanXxxPropertyBuilder`s and `ReadOnlyJavaBeanXxxPropertyBuilder`s are made private as shown here for the Double variant:

    private JavaBeanDoublePropertyBuilder() {}

```
JavaBeanBooleanPropertyBuilder()
JavaBeanDoublePropertyBuilder()
JavaBeanIntegerProperty()
JavaBeanLongPropertyBuilder()
JavaBeanFloatPropertyBuilder()
JavaBeanStringPropertyBuilder()
JavaBeanObjectPropertyBuilder()

ReadOnlyJavaBeanBooleanPropertyBuilder()
ReadOnlyJavaBeanDoublePropertyBuilder()
ReadOnlyJavaBeanIntegerProperty()
ReadOnlyJavaBeanLongPropertyBuilder()
ReadOnlyJavaBeanFloatPropertyBuilder()
ReadOnlyJavaBeanStringPropertyBuilder()
ReadOnlyJavaBeanObjectPropertyBuilder()
```


Comments
Moving to Approved.
07-03-2020

Looks good to me.
06-03-2020

Moving to Provisional; please have [~kcr] review before finalizing.
06-03-2020