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 aef8f5272d9b3b6c15507232908e1be381ba49f1 Author: Gilles <gillese...@gmail.com> AuthorDate: Fri Mar 13 04:01:27 2020 +0100 Reduce visibility of method that is meant to be used internally only. Note: Since "Cluster" is mutable, the "center" stored in "CentroidCluster" may become inconsistent with the actual contents of the cluster. See MATH-1524. --- .../java/org/apache/commons/math4/ml/clustering/CentroidCluster.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/math4/ml/clustering/CentroidCluster.java b/src/main/java/org/apache/commons/math4/ml/clustering/CentroidCluster.java index ba08e23..a9ec074 100644 --- a/src/main/java/org/apache/commons/math4/ml/clustering/CentroidCluster.java +++ b/src/main/java/org/apache/commons/math4/ml/clustering/CentroidCluster.java @@ -46,7 +46,7 @@ public class CentroidCluster<T extends Clusterable> extends Cluster<T> { * Get the point chosen to be the center of this cluster. * @return chosen cluster center */ - public Clusterable getCenter() { + Clusterable getCenter() { return center; }