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

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

commit aa04de7af36bfc8fad52a426ba7723e0793e6298
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Mon Aug 19 13:29:53 2024 -0400

    Sort members
---
 src/main/java/org/apache/commons/dbcp2/Utils.java | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/src/main/java/org/apache/commons/dbcp2/Utils.java 
b/src/main/java/org/apache/commons/dbcp2/Utils.java
index e9324adb..f67f2b60 100644
--- a/src/main/java/org/apache/commons/dbcp2/Utils.java
+++ b/src/main/java/org/apache/commons/dbcp2/Utils.java
@@ -216,17 +216,6 @@ public final class Utils {
         return new HashSet<>(DISCONNECTION_SQL_CODES);
     }
 
-    /**
-     * Checks if the given SQL state corresponds to a fatal connection error.
-     *
-     * @param sqlState the SQL state to check.
-     * @return true if the SQL state is a fatal connection error, false 
otherwise.
-     * @since 2.13.0
-     */
-    static boolean isDisconnectionSqlCode(String sqlState) {
-        return DISCONNECTION_SQL_CODES.contains(sqlState);
-    }
-
     /**
      * Gets the correct i18n message for the given key.
      *
@@ -253,6 +242,17 @@ public final class Utils {
         return mf.format(args, new StringBuffer(), null).toString();
     }
 
+    /**
+     * Checks if the given SQL state corresponds to a fatal connection error.
+     *
+     * @param sqlState the SQL state to check.
+     * @return true if the SQL state is a fatal connection error, false 
otherwise.
+     * @since 2.13.0
+     */
+    static boolean isDisconnectionSqlCode(String sqlState) {
+        return DISCONNECTION_SQL_CODES.contains(sqlState);
+    }
+
     static boolean isEmpty(final Collection<?> collection) {
         return collection == null || collection.isEmpty();
     }

Reply via email to