commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aherb...@apache.org
Subject [commons-geometry] 07/08: Ensure Comparators also implement Serializable.
Date Tue, 18 Feb 2020 00:16:20 GMT
This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-geometry.git

commit 4ff25b4d1f5d20e2167b5cf235e72a14f8701d90
Author: Alex Herbert <a.herbert@sussex.ac.uk>
AuthorDate: Tue Feb 18 00:04:26 2020 +0000

    Ensure Comparators also implement Serializable.
---
 .../geometry/core/precision/EpsilonDoublePrecisionContext.java      | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/commons-geometry-core/src/main/java/org/apache/commons/geometry/core/precision/EpsilonDoublePrecisionContext.java
b/commons-geometry-core/src/main/java/org/apache/commons/geometry/core/precision/EpsilonDoublePrecisionContext.java
index 30d2d10..65f5620 100644
--- a/commons-geometry-core/src/main/java/org/apache/commons/geometry/core/precision/EpsilonDoublePrecisionContext.java
+++ b/commons-geometry-core/src/main/java/org/apache/commons/geometry/core/precision/EpsilonDoublePrecisionContext.java
@@ -18,6 +18,8 @@ package org.apache.commons.geometry.core.precision;
 
 import org.apache.commons.numbers.core.Precision;
 
+import java.io.Serializable;
+
 /** Simple {@link DoublePrecisionContext} subclass that uses an absolute epsilon value to
  * determine equality between doubles.
  *
@@ -28,7 +30,9 @@ import org.apache.commons.numbers.core.Precision;
  *
  * @see Precision#compareTo(double, double, double)
  */
-public class EpsilonDoublePrecisionContext extends DoublePrecisionContext {
+public class EpsilonDoublePrecisionContext extends DoublePrecisionContext implements Serializable
{
+    private static final long serialVersionUID = 1L;
+
     /** Epsilon value. */
     private final double epsilon;
 


Mime
View raw message