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-geometry.git
commit 5cfca2a16fde9918f647836c3c8c98d01f756d7a Author: Matt Juntunen <[email protected]> AuthorDate: Sun Sep 9 14:32:32 2018 -0400 GEOMETRY-9: making Vectors class internal per pull request discussion --- .../geometry/core/{util => internal}/Vectors.java | 2 +- .../commons/geometry/core/util/package-info.java | 23 ---------------------- .../core/{util => internal}/VectorsTest.java | 3 ++- .../commons/geometry/euclidean/oned/Vector1D.java | 2 +- .../commons/geometry/euclidean/threed/Point3D.java | 2 +- .../geometry/euclidean/threed/Vector3D.java | 2 +- .../commons/geometry/euclidean/twod/Point2D.java | 2 +- .../commons/geometry/euclidean/twod/Vector2D.java | 2 +- 8 files changed, 8 insertions(+), 30 deletions(-) diff --git a/commons-geometry-core/src/main/java/org/apache/commons/geometry/core/util/Vectors.java b/commons-geometry-core/src/main/java/org/apache/commons/geometry/core/internal/Vectors.java similarity index 99% rename from commons-geometry-core/src/main/java/org/apache/commons/geometry/core/util/Vectors.java rename to commons-geometry-core/src/main/java/org/apache/commons/geometry/core/internal/Vectors.java index 4cd24b2..673d53b 100644 --- a/commons-geometry-core/src/main/java/org/apache/commons/geometry/core/util/Vectors.java +++ b/commons-geometry-core/src/main/java/org/apache/commons/geometry/core/internal/Vectors.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.geometry.core.util; +package org.apache.commons.geometry.core.internal; /** This class consists exclusively of static vector utility methods. */ diff --git a/commons-geometry-core/src/main/java/org/apache/commons/geometry/core/util/package-info.java b/commons-geometry-core/src/main/java/org/apache/commons/geometry/core/util/package-info.java deleted file mode 100644 index fd6dea3..0000000 --- a/commons-geometry-core/src/main/java/org/apache/commons/geometry/core/util/package-info.java +++ /dev/null @@ -1,23 +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. - */ -/** - * - * <p> - * This package contains geometry utility classes. - * </p> - */ -package org.apache.commons.geometry.core.util; diff --git a/commons-geometry-core/src/test/java/org/apache/commons/geometry/core/util/VectorsTest.java b/commons-geometry-core/src/test/java/org/apache/commons/geometry/core/internal/VectorsTest.java similarity index 98% rename from commons-geometry-core/src/test/java/org/apache/commons/geometry/core/util/VectorsTest.java rename to commons-geometry-core/src/test/java/org/apache/commons/geometry/core/internal/VectorsTest.java index 253192a..9817b28 100644 --- a/commons-geometry-core/src/test/java/org/apache/commons/geometry/core/util/VectorsTest.java +++ b/commons-geometry-core/src/test/java/org/apache/commons/geometry/core/internal/VectorsTest.java @@ -14,8 +14,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.geometry.core.util; +package org.apache.commons.geometry.core.internal; +import org.apache.commons.geometry.core.internal.Vectors; import org.junit.Assert; import org.junit.Test; diff --git a/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/oned/Vector1D.java b/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/oned/Vector1D.java index 68fec66..57f85b5 100644 --- a/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/oned/Vector1D.java +++ b/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/oned/Vector1D.java @@ -18,7 +18,7 @@ package org.apache.commons.geometry.euclidean.oned; import org.apache.commons.geometry.core.Geometry; import org.apache.commons.geometry.core.internal.SimpleTupleFormat; -import org.apache.commons.geometry.core.util.Vectors; +import org.apache.commons.geometry.core.internal.Vectors; import org.apache.commons.geometry.euclidean.EuclideanVector; import org.apache.commons.geometry.euclidean.internal.ZeroNormException; import org.apache.commons.numbers.arrays.LinearCombination; diff --git a/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/threed/Point3D.java b/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/threed/Point3D.java index 52c574b..a930ba0 100644 --- a/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/threed/Point3D.java +++ b/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/threed/Point3D.java @@ -18,7 +18,7 @@ package org.apache.commons.geometry.euclidean.threed; import org.apache.commons.geometry.core.internal.SimpleTupleFormat; -import org.apache.commons.geometry.core.util.Vectors; +import org.apache.commons.geometry.core.internal.Vectors; import org.apache.commons.geometry.euclidean.EuclideanPoint; import org.apache.commons.numbers.arrays.LinearCombination; diff --git a/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/threed/Vector3D.java b/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/threed/Vector3D.java index 2a1a5f7..61644ef 100644 --- a/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/threed/Vector3D.java +++ b/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/threed/Vector3D.java @@ -17,7 +17,7 @@ package org.apache.commons.geometry.euclidean.threed; import org.apache.commons.geometry.core.internal.SimpleTupleFormat; -import org.apache.commons.geometry.core.util.Vectors; +import org.apache.commons.geometry.core.internal.Vectors; import org.apache.commons.geometry.euclidean.EuclideanVector; import org.apache.commons.geometry.euclidean.internal.ZeroNormException; import org.apache.commons.numbers.arrays.LinearCombination; diff --git a/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/twod/Point2D.java b/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/twod/Point2D.java index f4be64e..3600689 100644 --- a/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/twod/Point2D.java +++ b/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/twod/Point2D.java @@ -17,7 +17,7 @@ package org.apache.commons.geometry.euclidean.twod; import org.apache.commons.geometry.core.internal.SimpleTupleFormat; -import org.apache.commons.geometry.core.util.Vectors; +import org.apache.commons.geometry.core.internal.Vectors; import org.apache.commons.geometry.euclidean.EuclideanPoint; import org.apache.commons.numbers.arrays.LinearCombination; diff --git a/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/twod/Vector2D.java b/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/twod/Vector2D.java index 60877cb..946d01b 100644 --- a/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/twod/Vector2D.java +++ b/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/twod/Vector2D.java @@ -17,7 +17,7 @@ package org.apache.commons.geometry.euclidean.twod; import org.apache.commons.geometry.core.internal.SimpleTupleFormat; -import org.apache.commons.geometry.core.util.Vectors; +import org.apache.commons.geometry.core.internal.Vectors; import org.apache.commons.geometry.euclidean.EuclideanVector; import org.apache.commons.geometry.euclidean.internal.ZeroNormException; import org.apache.commons.numbers.arrays.LinearCombination;
