6563734: Path2D.Float and Path2D.Double should have final getPathIterator methods

Reviewed-by: prr
This commit is contained in:
Jim Graham 2011-05-02 14:38:22 -07:00
parent 589a17bd79
commit 1003e3e744

View File

@ -732,7 +732,7 @@ public abstract class Path2D implements Shape, Cloneable {
* *
* @since 1.6 * @since 1.6
*/ */
public PathIterator getPathIterator(AffineTransform at) { public final PathIterator getPathIterator(AffineTransform at) {
if (at == null) { if (at == null) {
return new CopyIterator(this); return new CopyIterator(this);
} else { } else {
@ -1461,7 +1461,7 @@ public abstract class Path2D implements Shape, Cloneable {
* of this {@code Shape}'s outline * of this {@code Shape}'s outline
* @since 1.6 * @since 1.6
*/ */
public PathIterator getPathIterator(AffineTransform at) { public final PathIterator getPathIterator(AffineTransform at) {
if (at == null) { if (at == null) {
return new CopyIterator(this); return new CopyIterator(this);
} else { } else {
@ -2342,7 +2342,7 @@ public abstract class Path2D implements Shape, Cloneable {
* *
* @since 1.6 * @since 1.6
*/ */
public PathIterator getPathIterator(AffineTransform at, public final PathIterator getPathIterator(AffineTransform at,
double flatness) double flatness)
{ {
return new FlatteningPathIterator(getPathIterator(at), flatness); return new FlatteningPathIterator(getPathIterator(at), flatness);