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 1b7f10eed7ad4548b85e1449686206332ab4a78c Author: Gilles Sadowski <[email protected]> AuthorDate: Thu Jun 3 18:42:58 2021 +0200 Moved "ComplexFormat" class to "util" package. --- .../commons/math4/legacy/complex/package-info.java | 22 ---------------------- .../legacy/{complex => util}/ComplexFormat.java | 2 +- .../org/apache/commons/math4/legacy/TestUtils.java | 7 ++++--- .../ComplexFormatAbstractTest.java | 2 +- .../{complex => util}/ComplexFormatTest.java | 2 +- .../{complex => util}/FrenchComplexFormatTest.java | 2 +- 6 files changed, 8 insertions(+), 29 deletions(-) diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/complex/package-info.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/complex/package-info.java deleted file mode 100644 index 72fd1f8..0000000 --- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/complex/package-info.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Complex number type implementations have been moved to - * <a href="http://commons.apache.org/numbers">Commons Numbers</a>. - */ -package org.apache.commons.math4.legacy.complex; diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/complex/ComplexFormat.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/util/ComplexFormat.java similarity index 99% rename from commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/complex/ComplexFormat.java rename to commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/util/ComplexFormat.java index 66334ed..3098a5e 100644 --- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/complex/ComplexFormat.java +++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/util/ComplexFormat.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math4.legacy.complex; +package org.apache.commons.math4.legacy.util; import java.text.FieldPosition; import java.text.NumberFormat; diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/TestUtils.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/TestUtils.java index 03bffb1..6465482 100644 --- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/TestUtils.java +++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/TestUtils.java @@ -23,17 +23,18 @@ import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.text.DecimalFormat; +import org.junit.Assert; + import org.apache.commons.numbers.complex.Complex; import org.apache.commons.numbers.core.Precision; import org.apache.commons.statistics.distribution.ContinuousDistribution; import org.apache.commons.math4.legacy.core.FieldElement; -import org.apache.commons.math4.legacy.complex.ComplexFormat; +import org.apache.commons.math4.legacy.core.jdkmath.AccurateMath; +import org.apache.commons.math4.legacy.util.ComplexFormat; import org.apache.commons.math4.legacy.linear.FieldMatrix; import org.apache.commons.math4.legacy.linear.RealMatrix; import org.apache.commons.math4.legacy.linear.RealVector; import org.apache.commons.math4.legacy.stat.inference.ChiSquareTest; -import org.apache.commons.math4.legacy.core.jdkmath.AccurateMath; -import org.junit.Assert; /** */ diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/complex/ComplexFormatAbstractTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/util/ComplexFormatAbstractTest.java similarity index 99% rename from commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/complex/ComplexFormatAbstractTest.java rename to commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/util/ComplexFormatAbstractTest.java index 3ffc5d6..6504160 100644 --- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/complex/ComplexFormatAbstractTest.java +++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/util/ComplexFormatAbstractTest.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math4.legacy.complex; +package org.apache.commons.math4.legacy.util; import java.text.FieldPosition; import java.text.NumberFormat; diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/complex/ComplexFormatTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/util/ComplexFormatTest.java similarity index 95% rename from commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/complex/ComplexFormatTest.java rename to commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/util/ComplexFormatTest.java index cf880d2..9af9741 100644 --- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/complex/ComplexFormatTest.java +++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/util/ComplexFormatTest.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math4.legacy.complex; +package org.apache.commons.math4.legacy.util; import java.util.Locale; diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/complex/FrenchComplexFormatTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/util/FrenchComplexFormatTest.java similarity index 95% rename from commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/complex/FrenchComplexFormatTest.java rename to commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/util/FrenchComplexFormatTest.java index 08c7bb9..9aa3afd 100644 --- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/complex/FrenchComplexFormatTest.java +++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/util/FrenchComplexFormatTest.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math4.legacy.complex; +package org.apache.commons.math4.legacy.util; import java.util.Locale;
