Skip to content

Commit a5ecfb6

Browse files
bhaweshkcnlisker
authored andcommitted
8252387: Deprecate for removal css Selector and ShapeConverter constructors
Reviewed-by: nlisker, kcr
1 parent 8e3616c commit a5ecfb6

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

modules/javafx.graphics/src/main/java/javafx/css/Selector.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@
4242
*/
4343
abstract public class Selector {
4444

45+
/**
46+
* @deprecated This constructor was exposed erroneously and will be removed in the next version. Use {@link #createSelector(String)} instead.
47+
*/
48+
@Deprecated(since="16", forRemoval=true)
49+
public Selector() {
50+
}
51+
4552
private static class UniversalSelector {
4653
private static final Selector INSTANCE =
4754
new SimpleSelector("*", null, null, null);

modules/javafx.graphics/src/main/java/javafx/css/converter/ShapeConverter.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ public class ShapeConverter extends StyleConverter<String, Shape> {
4343

4444
public static StyleConverter<String, Shape> getInstance() { return INSTANCE; }
4545

46+
/**
47+
* @deprecated This constructor was exposed erroneously and will be removed in the next version. Use {@link #getInstance()} instead.
48+
*/
49+
@Deprecated(since="16", forRemoval=true)
50+
public ShapeConverter() {
51+
}
52+
4653
@Override public Shape convert(ParsedValue<String, Shape> value, Font font) {
4754

4855
Shape shape = super.getCachedValue(value);

0 commit comments

Comments
 (0)