提交 14585451 编写于 作者: F flar

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

Reviewed-by: prr
上级 e52bd231
...@@ -732,7 +732,7 @@ public abstract class Path2D implements Shape, Cloneable { ...@@ -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 { ...@@ -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 { ...@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册