[Git][java-team/curvesapi][upstream] New upstream version 1.06

Emmanuel Bourg gitlab at salsa.debian.org
Wed Feb 3 22:26:35 GMT 2021



Emmanuel Bourg pushed to branch upstream at Debian Java Maintainers / curvesapi


Commits:
36e1ff3a by Emmanuel Bourg at 2021-02-03T23:23:18+01:00
New upstream version 1.06
- - - - -


4 changed files:

- README.md
- pom.xml
- src/main/java/com/graphbuilder/curve/CardinalSpline.java
- src/main/java/com/graphbuilder/curve/CatmullRomSpline.java


Changes:

=====================================
README.md
=====================================
@@ -17,7 +17,7 @@ However, bugfixes and reasonably scoped improvements will be accepted.
 List of changes
 ---------------
 
-* Version has been bumped to 1.04
+* Version has been bumped to 1.06
 * The javadocs have been removed from this distribution
 * The build scripts have been removed and pom.xml has been added to support
   usage with maven
@@ -37,4 +37,3 @@ The original project used a BSD license, and remains so.
 
 com.graphbuilder.org.apache.harmony.awt.gl.Crossing is from the Apache
 Harmony project and is released under the Apache 2.0 license.
-


=====================================
pom.xml
=====================================
@@ -2,7 +2,7 @@
   <modelVersion>4.0.0</modelVersion>
   <groupId>com.github.virtuald</groupId>
   <artifactId>curvesapi</artifactId>
-  <version>1.05</version>
+  <version>1.06</version>
   <name>curvesapi</name>
   <description>Implementation of various mathematical curves that define themselves over a set of control points. The API is written in Java. The curves supported are: Bezier, B-Spline, Cardinal Spline, Catmull-Rom Spline, Lagrange, Natural Cubic Spline, and NURBS.</description>
   <url>https://github.com/virtuald/curvesapi</url>


=====================================
src/main/java/com/graphbuilder/curve/CardinalSpline.java
=====================================
@@ -133,8 +133,9 @@ public class CardinalSpline extends ParametricCurve {
 			int count_j = gi.count_j();
 
 			for (int i = 0; i < 4; i++) {
-				if (!gi.hasNext())
-					throw new IllegalArgumentException("Group iterator ended early");
+				if (!gi.hasNext()) {
+					return;
+				}
 				sharedData.pt[i] = cp.getPoint(gi.next()).getLocation();
 			}
 


=====================================
src/main/java/com/graphbuilder/curve/CatmullRomSpline.java
=====================================
@@ -106,8 +106,9 @@ public class CatmullRomSpline extends ParametricCurve {
 			int count_j = gi.count_j();
 
 			for (int i = 0; i < 4; i++) {
-				if (!gi.hasNext())
-					throw new IllegalArgumentException("Group iterator ended early");
+				if (!gi.hasNext()) {
+					return;
+				}
 				sharedData.pt[i] = cp.getPoint(gi.next()).getLocation();
 			}
 



View it on GitLab: https://salsa.debian.org/java-team/curvesapi/-/commit/36e1ff3a8e3cf9b4843a94956a3156bf69a2b7cc

-- 
View it on GitLab: https://salsa.debian.org/java-team/curvesapi/-/commit/36e1ff3a8e3cf9b4843a94956a3156bf69a2b7cc
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20210203/7f230454/attachment.html>


More information about the pkg-java-commits mailing list