Revision: 1269
Author:   heuermh
Date:     Tue Dec 30 02:48:02 2014 UTC
Log: Issue 263 ; final methods will break binary compability, save for 4.0
https://code.google.com/p/piccolo2d/source/detail?r=1269

Modified:
 /piccolo2d.java/trunk/core/src/main/java/org/piccolo2d/nodes/PPath.java

=======================================
--- /piccolo2d.java/trunk/core/src/main/java/org/piccolo2d/nodes/PPath.java Tue Dec 30 00:15:58 2014 UTC +++ /piccolo2d.java/trunk/core/src/main/java/org/piccolo2d/nodes/PPath.java Tue Dec 30 02:48:02 2014 UTC
@@ -286,14 +286,14 @@

     /**
* Create and return a new path node with a shape defined by the specified line segments in single
-     * precision floating point coordinates.
+ * precision floating point coordinates. Will be marked <code>final</code> in version 4.0.
      *
* @param xp array of x coordinates, must contain at least one x coordinate * @param yp array of y coordinates, must contain at least one y coordinate * @return a new path node with the a shape defined by the specified line segments in single
      *    precision floating point coordinates
      */
- public static final PPath createPolyline(final float[] xp, final float[] yp) { + public static PPath createPolyline(final float[] xp, final float[] yp) {
         if (xp.length < 1) {
throw new IllegalArgumentException("xp must contain at least one x coordinate");
         }
@@ -314,13 +314,13 @@

     /**
* Create and return a new path node with a shape defined by the specified line segments in single
-     * precision floating point coordinates.
+ * precision floating point coordinates. Will be marked <code>final</code> in version 4.0.
      *
* @param points array of points, must not be null and must contain at least one point * @return a new path node with the a shape defined by the specified line segments in single
      *    precision floating point coordinates
      */
- public static final PPath createPolyline(final Point2D.Float[] points) {
+    public static PPath createPolyline(final Point2D.Float[] points) {
         if (points == null) {
             throw new NullPointerException("points must not be null");
         }
@@ -475,14 +475,6 @@
public static final PPath createLine(final double x1, final double y1, final double x2, final double y2) {
         return new PPath.Double(new Line2D.Double(x1, y1, x2, y2));
     }
-
-    /*
- public static final PPath createPolyline(final double[] xp, final double[] yp) {
-    }
-
- public static final PPath createPolyline(final Point2D.Double[] points) {
-    }
-    */

     /**
* Create and return a new path node with the specified quadratic curve in double

--
--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en
--- You received this message because you are subscribed to the Google Groups "Piccolo2D Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to piccolo2d-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to