From ca0a9c0159bcf1d0b5cc91898863ad9973120403 Mon Sep 17 00:00:00 2001
From: Gary Gregory
Date: Sun, 14 Jan 2024 11:08:45 -0500
Subject: [PATCH] Javadoc and comments: Use an HTTPS URL
---
.../main/java/org/apache/commons/geometry/core/Vector.java | 2 +-
.../apache/commons/geometry/euclidean/internal/Vectors.java | 6 +++---
.../geometry/euclidean/threed/AbstractConvexPolygon3D.java | 2 +-
.../commons/geometry/euclidean/twod/hull/ConvexHull2D.java | 2 +-
.../apache/commons/geometry/examples/jmh/package-info.java | 2 +-
.../commons/geometry/spherical/oned/package-info.java | 2 +-
.../commons/geometry/spherical/twod/package-info.java | 2 +-
7 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/commons-geometry-core/src/main/java/org/apache/commons/geometry/core/Vector.java b/commons-geometry-core/src/main/java/org/apache/commons/geometry/core/Vector.java
index dbd3e49d5..f34a7b782 100644
--- a/commons-geometry-core/src/main/java/org/apache/commons/geometry/core/Vector.java
+++ b/commons-geometry-core/src/main/java/org/apache/commons/geometry/core/Vector.java
@@ -40,7 +40,7 @@ public interface Vector> extends Spatial {
/** Get the L2 norm (commonly known as the Euclidean norm) for the vector.
* This corresponds to the common notion of vector magnitude or length and
* is defined as the square root of the sum of the squares of all vector components.
- * @see L2 Norm
+ * @see L2 Norm
* @return L2 norm for the vector
*/
double norm();
diff --git a/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/internal/Vectors.java b/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/internal/Vectors.java
index bd77d5726..b83be3bd3 100644
--- a/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/internal/Vectors.java
+++ b/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/internal/Vectors.java
@@ -77,7 +77,7 @@ public static IllegalArgumentException illegalNorm(final double norm) {
* or length and is defined as the square root of the sum of the squares of all vector components.
* @param x vector component
* @return L2 norm for the vector with the given components
- * @see L2 Norm
+ * @see L2 Norm
*/
public static double norm(final double x) {
return Math.abs(x);
@@ -89,7 +89,7 @@ public static double norm(final double x) {
* @param x1 first vector component
* @param x2 second vector component
* @return L2 norm for the vector with the given components
- * @see L2 Norm
+ * @see L2 Norm
*/
public static double norm(final double x1, final double x2) {
return Math.hypot(x1, x2);
@@ -102,7 +102,7 @@ public static double norm(final double x1, final double x2) {
* @param x2 second vector component
* @param x3 third vector component
* @return L2 norm for the vector with the given components
- * @see L2 Norm
+ * @see L2 Norm
*/
public static double norm(final double x1, final double x2, final double x3) {
return Norm.EUCLIDEAN.of(x1, x2, x3);
diff --git a/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/threed/AbstractConvexPolygon3D.java b/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/threed/AbstractConvexPolygon3D.java
index cb5575d3c..96d7fbc5f 100644
--- a/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/threed/AbstractConvexPolygon3D.java
+++ b/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/threed/AbstractConvexPolygon3D.java
@@ -71,7 +71,7 @@ public boolean isEmpty() {
/** {@inheritDoc} */
@Override
public double getSize() {
- // see http://geomalgorithms.com/a01-_area.html#3D-Planar-Polygons
+ // see https://geomalgorithms.com/a01-_area.html#3D-Planar-Polygons
final List vertices = getVertices();
double crossSumX = 0.0;
diff --git a/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/twod/hull/ConvexHull2D.java b/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/twod/hull/ConvexHull2D.java
index 5979695e1..558c08758 100644
--- a/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/twod/hull/ConvexHull2D.java
+++ b/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/twod/hull/ConvexHull2D.java
@@ -122,7 +122,7 @@ private static LinePath buildHullPath(final Collection vertices,
* distribution.
*
* @see
+ * "https://en.wikipedia.org/wiki/Convex_hull_algorithms#Akl-Toussaint_heuristic">
* Akl-Toussaint heuristic (Wikipedia)
*/
public static final class Builder {
diff --git a/commons-geometry-examples/examples-jmh/src/main/java/org/apache/commons/geometry/examples/jmh/package-info.java b/commons-geometry-examples/examples-jmh/src/main/java/org/apache/commons/geometry/examples/jmh/package-info.java
index f5656a9e4..b85d11a44 100644
--- a/commons-geometry-examples/examples-jmh/src/main/java/org/apache/commons/geometry/examples/jmh/package-info.java
+++ b/commons-geometry-examples/examples-jmh/src/main/java/org/apache/commons/geometry/examples/jmh/package-info.java
@@ -20,7 +20,7 @@
*
*
* This package contains code to perform a
- * JMH run.
+ * JMH run.
*
*/
package org.apache.commons.geometry.examples.jmh;
diff --git a/commons-geometry-spherical/src/main/java/org/apache/commons/geometry/spherical/oned/package-info.java b/commons-geometry-spherical/src/main/java/org/apache/commons/geometry/spherical/oned/package-info.java
index c9e5dfc21..67b90828e 100644
--- a/commons-geometry-spherical/src/main/java/org/apache/commons/geometry/spherical/oned/package-info.java
+++ b/commons-geometry-spherical/src/main/java/org/apache/commons/geometry/spherical/oned/package-info.java
@@ -21,7 +21,7 @@
*
*
* We use here the topologists definition of the 1-sphere (see
- * Sphere on
+ * Sphere on
* MathWorld), i.e. the 1-sphere is the one-dimensional closed curve
* defined in 2D as x2+y2=1.
*
diff --git a/commons-geometry-spherical/src/main/java/org/apache/commons/geometry/spherical/twod/package-info.java b/commons-geometry-spherical/src/main/java/org/apache/commons/geometry/spherical/twod/package-info.java
index 4d2cdff66..210978420 100644
--- a/commons-geometry-spherical/src/main/java/org/apache/commons/geometry/spherical/twod/package-info.java
+++ b/commons-geometry-spherical/src/main/java/org/apache/commons/geometry/spherical/twod/package-info.java
@@ -21,7 +21,7 @@
*
*
* We use here the topologists definition of the 2-sphere (see
- * Sphere on
+ * Sphere on
* MathWorld), i.e. the 2-sphere is the two-dimensional surface
* defined in 3D as x2+y2+z2=1.
*