Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/java.desktop/share/classes/java/awt/geom/Path2D.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@
* @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.
Expand Down Expand Up @@ -191,7 +193,7 @@ static byte[] expandPointTypes(byte[] oldPointTypes, int needed) {
*
* @since 1.6
*/
public static class Float extends Path2D implements Serializable {
public static non-sealed class Float extends Path2D implements Serializable {
transient float[] floatCoords;

/**
Expand Down Expand Up @@ -1093,7 +1095,7 @@ public int currentSegment(double[] coords) {
*
* @since 1.6
*/
public static class Double extends Path2D implements Serializable {
public static non-sealed class Double extends Path2D implements Serializable {
transient double[] doubleCoords;

/**
Expand Down