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

Deprecate for removal css Selector and ShapeConverter constructors

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P3 P3
    • jfx16
    • javafx
    • None
    • source
    • minimal
    • Java API
    • JDK

      Summary

      Deprecate the public constructor of javafx.css.Selector and javafx.css.converter.ShapeConverter

      Problem

      • Constructor for class javafx.css.Selector should not be public as it is only extended by classes in same package.
      • Constructor for class javafx.css.converter.ShapeConverter should not be public as its a singleton class.

      Solution

      Deprecate the constructor of both class javafx.css.Selector and javafx.css.converter.ShapeConverter for removal.

      Specification

      /**
       * @deprecated This constructor was exposed erroneously and will be removed in the next version. Use {@link #createSelector(String)} instead.
       */
      @Deprecated(since="16", forRemoval=true)
      public Selector() {
      }
      
      /**
       * @deprecated This constructor was exposed erroneously and will be removed in the next version. Use {@link #getInstance()} instead.
       */
      @Deprecated(since="16", forRemoval=true)
      public ShapeConverter() {
      }

            bchoudhary Bhawesh Choudhary (Inactive)
            kcr Kevin Rushforth
            Kevin Rushforth
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: