You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by er...@apache.org on 2021/07/11 19:47:19 UTC

[commons-math] branch master updated (f4244dc -> df895da)

This is an automated email from the ASF dual-hosted git repository.

erans pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git.


    from f4244dc  Unused field.
     new ded7c63  MATH-1528: Remove "Serializable".
     new df895da  Release notes (draft).

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../org/apache/commons/math4/legacy/ml/clustering/Cluster.java   | 6 +-----
 .../apache/commons/math4/legacy/ml/distance/DistanceMeasure.java | 4 +---
 src/changes/changes.xml                                          | 9 ++++++---
 3 files changed, 8 insertions(+), 11 deletions(-)

[commons-math] 01/02: MATH-1528: Remove "Serializable".

Posted by er...@apache.org.
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-math.git

commit ded7c635219bededf9105abcd4a96578790e587a
Author: Amar Prakash Pandey <am...@gmail.com>
AuthorDate: Sun Jul 4 15:08:48 2021 +0530

    MATH-1528: Remove "Serializable".
    
    Closes #191.
---
 .../java/org/apache/commons/math4/legacy/ml/clustering/Cluster.java | 6 +-----
 .../apache/commons/math4/legacy/ml/distance/DistanceMeasure.java    | 4 +---
 2 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ml/clustering/Cluster.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ml/clustering/Cluster.java
index e336b80..5aedc6b 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ml/clustering/Cluster.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ml/clustering/Cluster.java
@@ -17,7 +17,6 @@
 
 package org.apache.commons.math4.legacy.ml.clustering;
 
-import java.io.Serializable;
 import java.util.ArrayList;
 import java.util.List;
 
@@ -26,10 +25,7 @@ import java.util.List;
  * @param <T> the type of points that can be clustered
  * @since 3.2
  */
-public class Cluster<T extends Clusterable> implements Serializable {
-
-    /** Serializable version identifier. */
-    private static final long serialVersionUID = -3442297081515880464L;
+public class Cluster<T extends Clusterable> {
 
     /** The points contained in this cluster. */
     private final List<T> points;
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ml/distance/DistanceMeasure.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ml/distance/DistanceMeasure.java
index c8fabc2..a5a22f1 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ml/distance/DistanceMeasure.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ml/distance/DistanceMeasure.java
@@ -16,8 +16,6 @@
  */
 package org.apache.commons.math4.legacy.ml.distance;
 
-import java.io.Serializable;
-
 import org.apache.commons.math4.legacy.exception.DimensionMismatchException;
 
 /**
@@ -25,7 +23,7 @@ import org.apache.commons.math4.legacy.exception.DimensionMismatchException;
  *
  * @since 3.2
  */
-public interface DistanceMeasure extends Serializable {
+public interface DistanceMeasure {
 
     /**
      * Compute the distance between two n-dimensional vectors.

[commons-math] 02/02: Release notes (draft).

Posted by er...@apache.org.
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-math.git

commit df895da9be085601f083dcf3d5657309b961a396
Author: Gilles Sadowski <gi...@gmail.com>
AuthorDate: Sun Jul 11 21:45:53 2021 +0200

    Release notes (draft).
---
 src/changes/changes.xml | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 802929e..7cb78f2 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -57,7 +57,7 @@ If the output is not quite correct, check for invisible trailing spaces!
 This is a major release that requires source changes in applications.
 
 Lower-level functionality has been split off to new components, often
-  with many bug-fixes, performance enhancements and improved API:
+  with bug-fixes, performance enhancements and improved API:
   Commons RNG,
   Commons Numbers,
   Commons Geometry,
@@ -75,8 +75,7 @@ The minimum version of the Java platform required to compile and use
 Users are encouraged to upgrade to this version, and to the new
  components listed above (they are now Commons Math's dependencies).
  Note that the new artefacts can be used together with v3.6.1 as the
- Java packages are different; ugrading can thus be performed
- incrementally.
+ Java packages are different.
 For codes that are now located in the 'commons-math-legacy' module,
  upgrading will be a matter of changing the top-level package name:
  From 'org.apache.commons.math3' to 'org.apache.commons.math4.legacy'.
@@ -85,6 +84,10 @@ For codes that are now located in the 'commons-math-legacy' module,
  and package 'org.apache.commons.math3.util' (e.g. 'MathArrays') over
  to package 'org.apache.commons.math4.legacy.core'.
 
+Notes:
+ Class 'FastMath' has been renamed 'AccurateMath' (now located in
+ package 'org.apache.commons.math4.legacy.core.jdkmath').
+
 Caveat:
  Although hundreds of issues have been fixed (see 'git log' and the
  reports in the bug-tracking system of all the listed components),