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-numbers.git

commit 68851c710dd140e787cc499561a261eee938025f
Author: aherbert <aherb...@apache.org>
AuthorDate: Tue Apr 25 14:09:53 2023 +0100

    PMD fix: Declare fields before interfaces
---
 .../main/java/org/apache/commons/numbers/core/Norm.java    | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git 
a/commons-numbers-core/src/main/java/org/apache/commons/numbers/core/Norm.java 
b/commons-numbers-core/src/main/java/org/apache/commons/numbers/core/Norm.java
index b067a4c2..7ea7e179 100644
--- 
a/commons-numbers-core/src/main/java/org/apache/commons/numbers/core/Norm.java
+++ 
b/commons-numbers-core/src/main/java/org/apache/commons/numbers/core/Norm.java
@@ -72,6 +72,13 @@ public enum Norm {
      */
     private static final int EXP_DIFF_THRESHOLD_2D = 54;
 
+    /** Function of 2 arguments. */
+    private final Two two;
+    /** Function of 3 arguments. */
+    private final Three three;
+    /** Function of array argument. */
+    private final Array array;
+
     /** Function of 2 arguments. */
     @FunctionalInterface
     private interface Two {
@@ -103,13 +110,6 @@ public enum Norm {
         double of(double[] v);
     }
 
-    /** Function of 2 arguments. */
-    private final Two two;
-    /** Function of 3 arguments. */
-    private final Three three;
-    /** Function of array argument. */
-    private final Array array;
-
     /**
      * @param two Function of 2 arguments.
      * @param three Function of 3 arguments.

Reply via email to