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

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


The following commit(s) were added to refs/heads/master by this push:
     new 23e406768 Checkstyle: Correct constructor order
23e406768 is described below

commit 23e406768c063e808da2c41d51a3c428fd3e26ac
Author: Alex Herbert <[email protected]>
AuthorDate: Mon Oct 26 08:32:09 2026 +0000

    Checkstyle: Correct constructor order
---
 .../commons/math4/legacy/util/ComplexFormat.java   | 42 +++++++++++-----------
 1 file changed, 21 insertions(+), 21 deletions(-)

diff --git 
a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/util/ComplexFormat.java
 
b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/util/ComplexFormat.java
index 217148caa..708140975 100644
--- 
a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/util/ComplexFormat.java
+++ 
b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/util/ComplexFormat.java
@@ -93,27 +93,6 @@ public class ComplexFormat {
         this.realFormat = realFormat;
     }
 
-    /**
-     * Creates the default number format used by complex values.
-     *
-     * @return a number format that does not accept grouping separators.
-     */
-    private static NumberFormat getDefaultNumberFormat() {
-        return getDefaultNumberFormat(Locale.getDefault());
-    }
-
-    /**
-     * Creates the default number format used by complex values.
-     *
-     * @param locale the locale used by the format.
-     * @return a number format that does not accept grouping separators.
-     */
-    private static NumberFormat getDefaultNumberFormat(final Locale locale) {
-        final NumberFormat format = 
CompositeFormat.getDefaultNumberFormat(locale);
-        format.setGroupingUsed(false);
-        return format;
-    }
-
     /**
      * Create an instance with a custom imaginary character, and the default
      * number format for both real and imaginary parts.
@@ -190,6 +169,27 @@ public class ComplexFormat {
         return NumberFormat.getAvailableLocales();
     }
 
+    /**
+     * Creates the default number format used by complex values.
+     *
+     * @return a number format that does not accept grouping separators.
+     */
+    private static NumberFormat getDefaultNumberFormat() {
+        return getDefaultNumberFormat(Locale.getDefault());
+    }
+
+    /**
+     * Creates the default number format used by complex values.
+     *
+     * @param locale the locale used by the format.
+     * @return a number format that does not accept grouping separators.
+     */
+    private static NumberFormat getDefaultNumberFormat(final Locale locale) {
+        final NumberFormat format = 
CompositeFormat.getDefaultNumberFormat(locale);
+        format.setGroupingUsed(false);
+        return format;
+    }
+
     /**
      * This method calls {@link #format(Object,StringBuffer,FieldPosition)}.
      *

Reply via email to