6563734: Path2D.Float and Path2D.Double should have final getPathIterator methods
Reviewed-by: prr
--- 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);
}