6563734: Path2D.Float and Path2D.Double should have final getPathIterator methods
authorflar
Mon, 02 May 2011 14:38:22 -0700
changeset 9469 b8ea6866765a
parent 9468 24fb2076f1d8
child 9470 c45ac3a3e555
child 9652 d7ab9742e1cf
6563734: Path2D.Float and Path2D.Double should have final getPathIterator methods Reviewed-by: prr
jdk/src/share/classes/java/awt/geom/Path2D.java
--- 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);
     }