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/05/28 22:49:49 UTC

[commons-math] 01/02: Remove implementation classes from public API.

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

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

commit 9146f7abe2de004ea057d2f60a900b04705b7724
Author: Gilles Sadowski <gi...@gmail.com>
AuthorDate: Fri May 28 19:42:17 2021 +0200

    Remove implementation classes from public API.
---
 .../org/apache/commons/math4/legacy/stat/descriptive/DoubleArray.java   | 2 +-
 .../commons/math4/legacy/stat/descriptive/ResizableDoubleArray.java     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/DoubleArray.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/DoubleArray.java
index 886b947..c5b5a93 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/DoubleArray.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/DoubleArray.java
@@ -23,7 +23,7 @@ package org.apache.commons.math4.legacy.stat.descriptive;
  * such as automatic expansion, contraction, and array "rolling".
  *
  */
-public interface DoubleArray {
+interface DoubleArray { // Not in public API.
 
     /**
      * Returns the number of elements currently in the array.  Please note
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/ResizableDoubleArray.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/ResizableDoubleArray.java
index 3d11c30..d68ea75 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/ResizableDoubleArray.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/ResizableDoubleArray.java
@@ -75,7 +75,7 @@ import org.apache.commons.math4.legacy.util.MathArrays;
  * <p>
  * <b>Note:</b> this class is <b>NOT</b> thread-safe.
  */
-public class ResizableDoubleArray implements DoubleArray, Serializable {
+class ResizableDoubleArray implements DoubleArray, Serializable { // Not in public API.
     /** Serializable version identifier. */
     private static final long serialVersionUID = -3485529955529426875L;