# HG changeset patch # User flar # Date 1304372302 25200 # Node ID b8ea6866765af4269397317d1a96b5ea9375ea64 # Parent 24fb2076f1d82a6bcae8d5d2e3185d76560e0d6c 6563734: Path2D.Float and Path2D.Double should have final getPathIterator methods Reviewed-by: prr diff -r 24fb2076f1d8 -r b8ea6866765a jdk/src/share/classes/java/awt/geom/Path2D.java --- a/jdk/src/share/classes/java/awt/geom/Path2D.java Fri Apr 29 16:27:34 2011 -0700 +++ b/jdk/src/share/classes/java/awt/geom/Path2D.java Mon May 02 14:38:22 2011 -0700 @@ -732,7 +732,7 @@ * * @since 1.6 */ - public PathIterator getPathIterator(AffineTransform at) { + public final PathIterator getPathIterator(AffineTransform at) { if (at == null) { return new CopyIterator(this); } else { @@ -1461,7 +1461,7 @@ * of this {@code Shape}'s outline * @since 1.6 */ - public PathIterator getPathIterator(AffineTransform at) { + public final PathIterator getPathIterator(AffineTransform at) { if (at == null) { return new CopyIterator(this); } else { @@ -2342,8 +2342,8 @@ * * @since 1.6 */ - public PathIterator getPathIterator(AffineTransform at, - double flatness) + public final PathIterator getPathIterator(AffineTransform at, + double flatness) { return new FlatteningPathIterator(getPathIterator(at), flatness); }