This is an automated email from the ASF dual-hosted git repository.
erans pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-geometry.git
The following commit(s) were added to refs/heads/master by this push:
new 7b100dc Previous version fails to compile on Java 8 (although it
passes on Java 11).
7b100dc is described below
commit 7b100dcdcc02ff825ca21ced4ddec69076fd1c79
Author: Gilles Sadowski <[email protected]>
AuthorDate: Thu Nov 28 18:52:29 2019 +0100
Previous version fails to compile on Java 8 (although it passes on Java 11).
---
.../main/java/org/apache/commons/geometry/spherical/oned/Point1S.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/commons-geometry-spherical/src/main/java/org/apache/commons/geometry/spherical/oned/Point1S.java
b/commons-geometry-spherical/src/main/java/org/apache/commons/geometry/spherical/oned/Point1S.java
index 0f8b006..0122cd3 100644
---
a/commons-geometry-spherical/src/main/java/org/apache/commons/geometry/spherical/oned/Point1S.java
+++
b/commons-geometry-spherical/src/main/java/org/apache/commons/geometry/spherical/oned/Point1S.java
@@ -353,7 +353,7 @@ public final class Point1S implements Point<Point1S> {
* @throws IllegalArgumentException if the given string has an invalid
format
*/
public static Point1S parse(final String str) {
- return SimpleTupleFormat.getDefault().parse(str, Point1S::of);
+ return SimpleTupleFormat.getDefault().parse(str, a -> of(a));
}
/** Compute the signed shortest distance (angular separation) between two
points. The return