Skip to content

Commit 13025a0

Browse files
committed
Make BackgroundPosition, BorderImage, BorderStroke, CornerRadii final
1 parent 01e9e7e commit 13025a0

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

modules/javafx.graphics/src/main/java/javafx/scene/layout/BackgroundPosition.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
* the Region's right edge.
5353
* @since JavaFX 8.0
5454
*/
55-
public class BackgroundPosition implements Interpolatable<BackgroundPosition> {
55+
public final class BackgroundPosition implements Interpolatable<BackgroundPosition> {
5656
/**
5757
* The default BackgroundPosition for any BackgroundImage. The default
5858
* is to have no insets and to be defined as 0% and 0%. That is, the

modules/javafx.graphics/src/main/java/javafx/scene/layout/BorderImage.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
* When applied to a Region with a defined shape, a BorderImage is ignored.
5151
* @since JavaFX 8.0
5252
*/
53-
public class BorderImage implements Interpolatable<BorderImage> {
53+
public final class BorderImage implements Interpolatable<BorderImage> {
5454
/**
5555
* The image to be used. This will never be null. If this
5656
* image fails to load, then the entire BorderImage will

modules/javafx.graphics/src/main/java/javafx/scene/layout/BorderStroke.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
*
4949
* @since JavaFX 8.0
5050
*/
51-
public class BorderStroke implements Interpolatable<BorderStroke> {
51+
public final class BorderStroke implements Interpolatable<BorderStroke> {
5252
/**
5353
* The default insets when "thin" is specified.
5454
*/

modules/javafx.graphics/src/main/java/javafx/scene/layout/CornerRadii.java

+9-9
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
*
4040
* @since JavaFX 8.0
4141
*/
42-
public class CornerRadii implements Interpolatable<CornerRadii> {
42+
public final class CornerRadii implements Interpolatable<CornerRadii> {
4343
/**
4444
* A CornerRadii which is entirely empty, indicating squared corners.
4545
* This is the default value for a BorderStroke's radii.
@@ -58,7 +58,7 @@ public class CornerRadii implements Interpolatable<CornerRadii> {
5858
* <a href="../../animation/Interpolatable.html#discrete">discrete</a> otherwise
5959
*/
6060
public final double getTopLeftHorizontalRadius() { return topLeftHorizontalRadius; }
61-
private double topLeftHorizontalRadius;
61+
private final double topLeftHorizontalRadius;
6262

6363
/**
6464
* The length of the vertical radii of the top-left corner.
@@ -69,7 +69,7 @@ public class CornerRadii implements Interpolatable<CornerRadii> {
6969
* <a href="../../animation/Interpolatable.html#discrete">discrete</a> otherwise
7070
*/
7171
public final double getTopLeftVerticalRadius() { return topLeftVerticalRadius; }
72-
private double topLeftVerticalRadius;
72+
private final double topLeftVerticalRadius;
7373

7474
/**
7575
* The length of the vertical radii of the top-right corner.
@@ -80,7 +80,7 @@ public class CornerRadii implements Interpolatable<CornerRadii> {
8080
* <a href="../../animation/Interpolatable.html#discrete">discrete</a> otherwise
8181
*/
8282
public final double getTopRightVerticalRadius() { return topRightVerticalRadius; }
83-
private double topRightVerticalRadius;
83+
private final double topRightVerticalRadius;
8484

8585
/**
8686
* The length of the horizontal radii of the top-right corner.
@@ -91,7 +91,7 @@ public class CornerRadii implements Interpolatable<CornerRadii> {
9191
* <a href="../../animation/Interpolatable.html#discrete">discrete</a> otherwise
9292
*/
9393
public final double getTopRightHorizontalRadius() { return topRightHorizontalRadius; }
94-
private double topRightHorizontalRadius;
94+
private final double topRightHorizontalRadius;
9595

9696
/**
9797
* The length of the horizontal radii of the bottom-right corner.
@@ -102,7 +102,7 @@ public class CornerRadii implements Interpolatable<CornerRadii> {
102102
* <a href="../../animation/Interpolatable.html#discrete">discrete</a> otherwise
103103
*/
104104
public final double getBottomRightHorizontalRadius() { return bottomRightHorizontalRadius; }
105-
private double bottomRightHorizontalRadius;
105+
private final double bottomRightHorizontalRadius;
106106

107107
/**
108108
* The length of the vertical radii of the bottom-right corner.
@@ -113,7 +113,7 @@ public class CornerRadii implements Interpolatable<CornerRadii> {
113113
* <a href="../../animation/Interpolatable.html#discrete">discrete</a> otherwise
114114
*/
115115
public final double getBottomRightVerticalRadius() { return bottomRightVerticalRadius; }
116-
private double bottomRightVerticalRadius;
116+
private final double bottomRightVerticalRadius;
117117

118118
/**
119119
* The length of the vertical radii of the bottom-left corner.
@@ -124,7 +124,7 @@ public class CornerRadii implements Interpolatable<CornerRadii> {
124124
* <a href="../../animation/Interpolatable.html#discrete">discrete</a> otherwise
125125
*/
126126
public final double getBottomLeftVerticalRadius() { return bottomLeftVerticalRadius; }
127-
private double bottomLeftVerticalRadius;
127+
private final double bottomLeftVerticalRadius;
128128

129129
/**
130130
* The length of the horizontal radii of the bottom-left corner.
@@ -135,7 +135,7 @@ public class CornerRadii implements Interpolatable<CornerRadii> {
135135
* <a href="../../animation/Interpolatable.html#discrete">discrete</a> otherwise
136136
*/
137137
public final double getBottomLeftHorizontalRadius() { return bottomLeftHorizontalRadius; }
138-
private double bottomLeftHorizontalRadius;
138+
private final double bottomLeftHorizontalRadius;
139139

140140
/**
141141
* Indicates whether {@code topLeftHorizontalRadius} is interpreted as a value or a percentage.

0 commit comments

Comments
 (0)