changeset 4072:55ef0efa2b14

6563734: Path2D.Float and Path2D.Double should have final getPathIterator methods Reviewed-by: prr
author flar
date Mon, 02 May 2011 14:38:22 -0700
parents c5209316e1ab
children 499d216a751e 85f53467c30c
files src/share/classes/java/awt/geom/Path2D.java
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/awt/geom/Path2D.java	Fri Apr 29 16:27:34 2011 -0700
+++ b/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);
     }