mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-07 08:59:07 +00:00
8283703: Add sealed modifier to java.awt.geom.Path2D
Reviewed-by: bpb, kizune, aivanov
This commit is contained in:
parent
0cd46f655a
commit
86caf606ff
@ -70,7 +70,9 @@ import sun.awt.geom.Curve;
|
||||
* @author Jim Graham
|
||||
* @since 1.6
|
||||
*/
|
||||
public abstract class Path2D implements Shape, Cloneable {
|
||||
public abstract sealed class Path2D implements Shape, Cloneable
|
||||
permits Path2D.Double,
|
||||
Path2D.Float {
|
||||
/**
|
||||
* An even-odd winding rule for determining the interior of
|
||||
* a path.
|
||||
@ -191,7 +193,7 @@ public abstract class Path2D implements Shape, Cloneable {
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
public static class Float extends Path2D implements Serializable {
|
||||
public static non-sealed class Float extends Path2D implements Serializable {
|
||||
transient float[] floatCoords;
|
||||
|
||||
/**
|
||||
@ -1093,7 +1095,7 @@ public abstract class Path2D implements Shape, Cloneable {
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
public static class Double extends Path2D implements Serializable {
|
||||
public static non-sealed class Double extends Path2D implements Serializable {
|
||||
transient double[] doubleCoords;
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user