6563734: Path2D.Float and Path2D.Double should have final getPathIterator methods
Reviewed-by: prr
This commit is contained in:
parent
589a17bd79
commit
1003e3e744
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user