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
*/
public PathIterator getPathIterator(AffineTransform at) {
public final PathIterator getPathIterator(AffineTransform at) {
if (at == null) {
return new CopyIterator(this);
} else {
@ -1461,7 +1461,7 @@ public abstract class Path2D implements Shape, Cloneable {
* 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 @@ public abstract class Path2D implements Shape, Cloneable {
*
* @since 1.6
*/
public PathIterator getPathIterator(AffineTransform at,
double flatness)
public final PathIterator getPathIterator(AffineTransform at,
double flatness)
{
return new FlatteningPathIterator(getPathIterator(at), flatness);
}