RFR: 8252387: Deprecate for removal css Selector and ShapeConverter constructors

Nir Lisker nlisker at openjdk.java.net
Fri Aug 28 16:27:46 UTC 2020


On Fri, 28 Aug 2020 14:55:55 GMT, Bhawesh Choudhary <bchoudhary at openjdk.org> wrote:

> Deprecate the public constructor of javafx.css.Selector as it should not be public due to only being extended by
> classes in same package. Deprecate the public constructor of javafx.css.converter.ShapeConverter as its a singleton
> class.

Looks good. Added a single comment.

modules/javafx.graphics/src/main/java/javafx/css/Selector.java line 47:

> 46:      * @deprecated This constructor was exposed erroneously and will be removed in the next version.
> 47:      */
> 48:     @Deprecated(since="16", forRemoval=true)

Please direct the reader to the way of obtaining an instance of this class like you did for `ShapeConverter`.

-------------

PR: https://git.openjdk.java.net/jfx/pull/290


More information about the openjfx-dev mailing list