You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2022/06/07 12:41:01 UTC

[commons-math] branch master updated (f067b2b4b -> c779c331a)

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

aherbert pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git


    from f067b2b4b MATH-1644: Prevent computed probability from exceeding 1.
     new 2f8b4da5b Correct javadoc tags to allow build on JDK 17
     new 4e3d62a28 Enable jacoco plugin using the commons parent profile
     new c779c331a Add GitHub workflows for build and coverage

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .github/workflows/coverage.yml                     | 51 ++++++++++++++++++++++
 .travis.yml => .github/workflows/maven.yml         | 48 +++++++++++---------
 .../src}/site/resources/profile.jacoco             |  0
 .../src}/site/resources/profile.jacoco             |  0
 .../math4/legacy/linear/ConjugateGradient.java     |  8 ++--
 .../commons/math4/legacy/linear/FieldVector.java   |  2 +-
 .../apache/commons/math4/legacy/linear/SymmLQ.java | 12 ++---
 .../nonstiff/AdamsBashforthFieldIntegrator.java    |  2 +-
 .../ode/nonstiff/AdamsBashforthIntegrator.java     |  2 +-
 .../ode/nonstiff/AdamsMoultonFieldIntegrator.java  |  2 +-
 .../ode/nonstiff/AdamsMoultonIntegrator.java       |  2 +-
 .../legacy/stat/descriptive/package-info.java      |  6 +--
 .../src}/site/resources/profile.jacoco             |  0
 .../src}/site/resources/profile.jacoco             |  0
 .../src}/site/resources/profile.jacoco             |  0
 15 files changed, 97 insertions(+), 38 deletions(-)
 create mode 100644 .github/workflows/coverage.yml
 copy .travis.yml => .github/workflows/maven.yml (50%)
 copy {src => commons-math-legacy-core/src}/site/resources/profile.jacoco (100%)
 copy {src => commons-math-legacy-exception/src}/site/resources/profile.jacoco (100%)
 copy {src => commons-math-legacy/src}/site/resources/profile.jacoco (100%)
 copy {src => commons-math-neuralnet/src}/site/resources/profile.jacoco (100%)
 copy {src => commons-math-transform/src}/site/resources/profile.jacoco (100%)


[commons-math] 02/03: Enable jacoco plugin using the commons parent profile

Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 4e3d62a2892a66b978021890912e831f5ef9e0dd
Author: aherbert <ah...@apache.org>
AuthorDate: Tue Jun 7 13:38:45 2022 +0100

    Enable jacoco plugin using the commons parent profile
---
 .../src/site/resources/profile.jacoco                   | 17 +++++++++++++++++
 .../src/site/resources/profile.jacoco                   | 17 +++++++++++++++++
 commons-math-legacy/src/site/resources/profile.jacoco   | 17 +++++++++++++++++
 .../src/site/resources/profile.jacoco                   | 17 +++++++++++++++++
 .../src/site/resources/profile.jacoco                   | 17 +++++++++++++++++
 5 files changed, 85 insertions(+)

diff --git a/commons-math-legacy-core/src/site/resources/profile.jacoco b/commons-math-legacy-core/src/site/resources/profile.jacoco
new file mode 100644
index 000000000..a12755f3b
--- /dev/null
+++ b/commons-math-legacy-core/src/site/resources/profile.jacoco
@@ -0,0 +1,17 @@
+# 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.
+# -----------------------------------------------------------------------------
+#
+# Empty file used to automatically trigger JaCoCo profile from commons parent pom
diff --git a/commons-math-legacy-exception/src/site/resources/profile.jacoco b/commons-math-legacy-exception/src/site/resources/profile.jacoco
new file mode 100644
index 000000000..a12755f3b
--- /dev/null
+++ b/commons-math-legacy-exception/src/site/resources/profile.jacoco
@@ -0,0 +1,17 @@
+# 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.
+# -----------------------------------------------------------------------------
+#
+# Empty file used to automatically trigger JaCoCo profile from commons parent pom
diff --git a/commons-math-legacy/src/site/resources/profile.jacoco b/commons-math-legacy/src/site/resources/profile.jacoco
new file mode 100644
index 000000000..a12755f3b
--- /dev/null
+++ b/commons-math-legacy/src/site/resources/profile.jacoco
@@ -0,0 +1,17 @@
+# 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.
+# -----------------------------------------------------------------------------
+#
+# Empty file used to automatically trigger JaCoCo profile from commons parent pom
diff --git a/commons-math-neuralnet/src/site/resources/profile.jacoco b/commons-math-neuralnet/src/site/resources/profile.jacoco
new file mode 100644
index 000000000..a12755f3b
--- /dev/null
+++ b/commons-math-neuralnet/src/site/resources/profile.jacoco
@@ -0,0 +1,17 @@
+# 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.
+# -----------------------------------------------------------------------------
+#
+# Empty file used to automatically trigger JaCoCo profile from commons parent pom
diff --git a/commons-math-transform/src/site/resources/profile.jacoco b/commons-math-transform/src/site/resources/profile.jacoco
new file mode 100644
index 000000000..a12755f3b
--- /dev/null
+++ b/commons-math-transform/src/site/resources/profile.jacoco
@@ -0,0 +1,17 @@
+# 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.
+# -----------------------------------------------------------------------------
+#
+# Empty file used to automatically trigger JaCoCo profile from commons parent pom


[commons-math] 03/03: Add GitHub workflows for build and coverage

Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit c779c331ab10004429230b038bb180cd331b0adf
Author: aherbert <ah...@apache.org>
AuthorDate: Tue Jun 7 13:39:10 2022 +0100

    Add GitHub workflows for build and coverage
---
 .github/workflows/coverage.yml | 51 ++++++++++++++++++++++++++++++++++++++++++
 .github/workflows/maven.yml    | 46 +++++++++++++++++++++++++++++++++++++
 2 files changed, 97 insertions(+)

diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml
new file mode 100644
index 000000000..0173b69eb
--- /dev/null
+++ b/.github/workflows/coverage.yml
@@ -0,0 +1,51 @@
+# 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.
+
+name: Coverage
+
+on: [push, pull_request]
+
+permissions:
+  contents: read
+
+jobs:
+  build:
+
+    runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        java: [ 8 ]
+
+    steps:
+    - uses: actions/checkout@v3
+    - uses: actions/cache@v3
+      with:
+        path: ~/.m2/repository
+        key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
+        restore-keys: |
+          ${{ runner.os }}-maven-
+    - name: Set up JDK ${{ matrix.java }}
+      uses: actions/setup-java@v3
+      with:
+        distribution: adopt
+        java-version: ${{ matrix.java }}
+    - name: Build with Maven
+      run: mvn -V test jacoco:report --no-transfer-progress
+
+    - name: Upload coverage to Codecov
+      uses: codecov/codecov-action@v3
+      with:
+        # commons-math-core module current skips jacoco report
+        files: ./commons-math-neuralnet/target/site/jacoco/jacoco.xml,./commons-math-transform/target/site/jacoco/jacoco.xml,./commons-math-legacy-exception/target/site/jacoco/jacoco.xml,./commons-math-legacy-core/target/site/jacoco/jacoco.xml,./commons-math-legacy/target/site/jacoco/jacoco.xml
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
new file mode 100644
index 000000000..37897d80a
--- /dev/null
+++ b/.github/workflows/maven.yml
@@ -0,0 +1,46 @@
+# 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.
+
+name: Java CI
+
+on: [push, pull_request]
+
+permissions:
+  contents: read
+
+jobs:
+  build:
+
+    runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        java: [ 8, 11, 17 ]
+
+    steps:
+    - uses: actions/checkout@v3
+    - uses: actions/cache@v3
+      with:
+        path: ~/.m2/repository
+        key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
+        restore-keys: |
+          ${{ runner.os }}-maven-
+    - name: Set up JDK ${{ matrix.java }}
+      uses: actions/setup-java@v3
+      with:
+        distribution: adopt
+        java-version: ${{ matrix.java }}
+    - name: Build with Maven
+      # Use the default goal
+      run: mvn -V --no-transfer-progress


[commons-math] 01/03: Correct javadoc tags to allow build on JDK 17

Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 2f8b4da5b93ce352c44b040a0942e520edbde7e0
Author: aherbert <ah...@apache.org>
AuthorDate: Tue Jun 7 12:58:37 2022 +0100

    Correct javadoc tags to allow build on JDK 17
    
    Remove heading tags
    Correctly close paragraph tags
---
 .../commons/math4/legacy/linear/ConjugateGradient.java       |  8 ++++----
 .../org/apache/commons/math4/legacy/linear/FieldVector.java  |  2 +-
 .../java/org/apache/commons/math4/legacy/linear/SymmLQ.java  | 12 ++++++------
 .../legacy/ode/nonstiff/AdamsBashforthFieldIntegrator.java   |  2 +-
 .../math4/legacy/ode/nonstiff/AdamsBashforthIntegrator.java  |  2 +-
 .../legacy/ode/nonstiff/AdamsMoultonFieldIntegrator.java     |  2 +-
 .../math4/legacy/ode/nonstiff/AdamsMoultonIntegrator.java    |  2 +-
 .../commons/math4/legacy/stat/descriptive/package-info.java  |  6 +++---
 8 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/ConjugateGradient.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/ConjugateGradient.java
index 20a198505..ed987e9b0 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/ConjugateGradient.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/ConjugateGradient.java
@@ -28,7 +28,7 @@ import org.apache.commons.math4.legacy.exception.util.ExceptionContext;
  * href="#BARR1994">Barrett et al. (1994)</a> (figure 2.5). The linear system at
  * hand is A &middot; x = b, and the residual is r = b - A &middot; x.
  * </p>
- * <h3><a id="stopcrit">Default stopping criterion</a></h3>
+ * <p><b><a id="stopcrit">Default stopping criterion</a></b></p>
  * <p>
  * A default stopping criterion is implemented. The iterations stop when || r ||
  * &le; &delta; || b ||, where b is the right-hand side vector, r the current
@@ -37,13 +37,13 @@ import org.apache.commons.math4.legacy.exception.util.ExceptionContext;
  * differ from the true residual due to rounding-off errors (see e.g. <a
  * href="#STRA2002">Strakos and Tichy, 2002</a>).
  * </p>
- * <h3>Iteration count</h3>
+ * <p><b>Iteration count</b></p>
  * <p>
  * In the present context, an iteration should be understood as one evaluation
  * of the matrix-vector product A &middot; x. The initialization phase therefore
  * counts as one iteration.
  * </p>
- * <h3><a id="context">Exception context</a></h3>
+ * <p><b><a id="context">Exception context</a></b></p>
  * <p>
  * Besides standard {@link DimensionMismatchException}, this class might throw
  * {@link NonPositiveDefiniteOperatorException} if the linear operator or
@@ -55,7 +55,7 @@ import org.apache.commons.math4.legacy.exception.util.ExceptionContext;
  * x<sup>T</sup> &middot; L &middot; x &lt; 0.</li>
  * </ul>
  *
- * <h3>References</h3>
+ * <p><b>References</b></p>
  * <dl>
  * <dt><a id="BARR1994">Barret et al. (1994)</a></dt>
  * <dd>R. Barrett, M. Berry, T. F. Chan, J. Demmel, J. M. Donato, J. Dongarra,
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/FieldVector.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/FieldVector.java
index cc917a5a3..a2da59bb2 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/FieldVector.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/FieldVector.java
@@ -49,7 +49,7 @@ import org.apache.commons.math4.legacy.exception.OutOfRangeException;
  * of <code>FieldVector</code> implementations to make sure no null elements
  * are inserted into the vector. This must be done in all constructors and
  * all setters.
- * <p>
+ * </p>
  *
  * @param <T> the type of the field elements
  * @since 2.0
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/SymmLQ.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/SymmLQ.java
index 33925213b..cf1127cb8 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/SymmLQ.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/SymmLQ.java
@@ -46,7 +46,7 @@ import org.apache.commons.math4.core.jdkmath.JdkMath;
  * definite (but <em>must</em> be self-adjoint). The work per iteration is very
  * slightly less if shift = 0.
  * </p>
- * <h3>Preconditioning</h3>
+ * <p><b>Preconditioning</b></p>
  * <p>
  * Preconditioning may reduce the number of iterations required. The solver may
  * be provided with a positive definite preconditioner
@@ -75,14 +75,14 @@ import org.apache.commons.math4.core.jdkmath.JdkMath;
  * the <em>preconditioned</em>, updated residual, ||P &middot; r||, not the norm
  * of the <em>true</em> residual ||r||.
  * </p>
- * <h3><a id="stopcrit">Default stopping criterion</a></h3>
+ * <p><b><a id="stopcrit">Default stopping criterion</a></b></p>
  * <p>
  * A default stopping criterion is implemented. The iterations stop when || rhat
  * || &le; &delta; || Ahat || || xhat ||, where xhat is the current estimate of
  * the solution of the transformed system, rhat the current estimate of the
  * corresponding residual, and &delta; a user-specified tolerance.
  * </p>
- * <h3>Iteration count</h3>
+ * <p><b>Iteration count</b></p>
  * <p>
  * In the present context, an iteration should be understood as one evaluation
  * of the matrix-vector product A &middot; x. The initialization phase therefore
@@ -97,7 +97,7 @@ import org.apache.commons.math4.core.jdkmath.JdkMath;
  * the original FOTRAN code, where the initialization phase was <em>not</em>
  * taken into account.
  * </p>
- * <h3><a id="initguess">Initial guess of the solution</a></h3>
+ * <p><b><a id="initguess">Initial guess of the solution</a></b></p>
  * <p>
  * The {@code x} parameter in
  * <ul>
@@ -112,7 +112,7 @@ import org.apache.commons.math4.core.jdkmath.JdkMath;
  * should compute r<sub>0</sub> = b - A &middot; x, solve A &middot; dx = r0,
  * and set x = x<sub>0</sub> + dx.
  *
- * <h3><a id="context">Exception context</a></h3>
+ * <p><b><a id="context">Exception context</a></b></p>
  * <p>
  * Besides standard {@link DimensionMismatchException}, this class might throw
  * {@link NonSelfAdjointOperatorException} if the linear operator or the
@@ -137,7 +137,7 @@ import org.apache.commons.math4.core.jdkmath.JdkMath;
  * that x<sup>T</sup> &middot; L &middot; x &lt; 0.</li>
  * </ul>
  *
- * <h3>References</h3>
+ * <p><b>References</b></p>
  * <dl>
  * <dt><a id="PAIG1975">Paige and Saunders (1975)</a></dt>
  * <dd>C. C. Paige and M. A. Saunders, <a
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsBashforthFieldIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsBashforthFieldIntegrator.java
index e85095f7d..757bc460c 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsBashforthFieldIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsBashforthFieldIntegrator.java
@@ -53,7 +53,7 @@ import org.apache.commons.math4.legacy.core.MathArrays;
  *
  * <p>A k-steps Adams-Bashforth method is of order k.</p>
  *
- * <h3>Implementation details</h3>
+ * <p><b>Implementation details</b></p>
  *
  * <p>We define scaled derivatives s<sub>i</sub>(n) at step n as:
  * <div style="white-space: pre"><code>
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsBashforthIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsBashforthIntegrator.java
index c1ac06c8d..a3ef59193 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsBashforthIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsBashforthIntegrator.java
@@ -51,7 +51,7 @@ import org.apache.commons.math4.core.jdkmath.JdkMath;
  *
  * <p>A k-steps Adams-Bashforth method is of order k.</p>
  *
- * <h3>Implementation details</h3>
+ * <p><b>Implementation details</b></p>
  *
  * <p>We define scaled derivatives s<sub>i</sub>(n) at step n as:
  * <div style="white-space: pre"><code>
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsMoultonFieldIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsMoultonFieldIntegrator.java
index 32ceee121..94ba8f7ef 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsMoultonFieldIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsMoultonFieldIntegrator.java
@@ -58,7 +58,7 @@ import org.apache.commons.math4.legacy.core.MathArrays;
  *
  * <p>A k-steps Adams-Moulton method is of order k+1.</p>
  *
- * <h3>Implementation details</h3>
+ * <p><b>Implementation details</b></p>
  *
  * <p>We define scaled derivatives s<sub>i</sub>(n) at step n as:
  * <div style="white-space: pre"><code>
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsMoultonIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsMoultonIntegrator.java
index 20b05db0e..f44d30acd 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsMoultonIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsMoultonIntegrator.java
@@ -56,7 +56,7 @@ import org.apache.commons.math4.core.jdkmath.JdkMath;
  *
  * <p>A k-steps Adams-Moulton method is of order k+1.</p>
  *
- * <h3>Implementation details</h3>
+ * <p><b>Implementation details</b></p>
  *
  * <p>We define scaled derivatives s<sub>i</sub>(n) at step n as:
  * <div style="white-space: pre"><code>
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/package-info.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/package-info.java
index 1280898ed..1f19eb4bf 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/package-info.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/package-info.java
@@ -18,16 +18,16 @@
  *
  *        Generic univariate summary statistic objects.
  *
- *        <h3>UnivariateStatistic API Usage Examples:</h3>
+ *        <p><b>UnivariateStatistic API Usage Examples:</b></p>
  *
- *        <h4>UnivariateStatistic:</h4>
+ *        <p><b><em>UnivariateStatistic:</em></b></p>
  *        <code>/&lowast; evaluation approach &lowast;/<br>
  *          double[] values = new double[] { 1, 2, 3, 4, 5 };<br>
  *          <span style="font-weight: bold;">UnivariateStatistic stat = new Mean();</span><br>
  *          out.println("mean = " + <span style="font-weight: bold;">stat.evaluate(values)</span>);<br>
  *        </code>
  *
- *        <h4>StorelessUnivariateStatistic:</h4>
+ *        <p><b><em>StorelessUnivariateStatistic:</em></b></p>
  *        <code>/&lowast; incremental approach &lowast;/<br>
  *          double[] values = new double[] { 1, 2, 3, 4, 5 };<br>
  *          <span style="font-weight: bold;">StorelessUnivariateStatistic stat = new Mean();</span><br>