Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8240689

Remove the JavaBeanXxxPropertyBuilders constructors

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P4 P4
    • jfx15
    • javafx
    • None
    • source, binary
    • minimal
    • Java API
    • JDK

      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 JavaBeanXxxPropertyBuilders and ReadOnlyJavaBeanXxxPropertyBuilders 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()

            nlisker Nir Lisker
            nlisker Nir Lisker
            Kevin Rushforth
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: