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

commit 1351cb7fd70f5583b290279d0bbf21a84d47e6cb
Author: Gary Gregory <[email protected]>
AuthorDate: Wed Dec 31 07:28:55 2025 -0500

    Sort members
---
 .../org/apache/commons/codec/binary/Base64.java    | 40 +++++++++++-----------
 1 file changed, 20 insertions(+), 20 deletions(-)

diff --git a/src/main/java/org/apache/commons/codec/binary/Base64.java 
b/src/main/java/org/apache/commons/codec/binary/Base64.java
index 79b8e2ba..352ffdcf 100644
--- a/src/main/java/org/apache/commons/codec/binary/Base64.java
+++ b/src/main/java/org/apache/commons/codec/binary/Base64.java
@@ -109,26 +109,6 @@ public class Base64 extends BaseNCodec {
             return new Base64(this);
         }
 
-        @Override
-        public Builder setEncodeTable(final byte... encodeTable) {
-            final boolean isStandardEncodeTable = Arrays.equals(encodeTable, 
STANDARD_ENCODE_TABLE);
-            final boolean isUrlSafe = Arrays.equals(encodeTable, 
URL_SAFE_ENCODE_TABLE);
-            setDecodeTableRaw(isStandardEncodeTable || isUrlSafe ? 
DECODE_TABLE : calculateDecodeTable(encodeTable));
-            return super.setEncodeTable(encodeTable);
-        }
-
-        /**
-         * Sets the URL-safe encoding policy.
-         * This method does not modify behavior on decoding operations. For 
configuration of the decoding behavior,
-         * please use {@link #setDecodeTableFormat} method.
-         *
-         * @param urlSafe URL-safe encoding policy, null resets to the default.
-         * @return {@code this} instance.
-         */
-        public Builder setUrlSafe(final boolean urlSafe) {
-            return setEncodeTable(toUrlSafeEncodeTable(urlSafe));
-        }
-
         /**
          * Sets the format of the decoding table.
          * This method allows to explicitly state whether a "standard" or "URL 
Safe" Base64 decoding is expected.
@@ -158,6 +138,26 @@ public class Base64 extends BaseNCodec {
             }
         }
 
+        @Override
+        public Builder setEncodeTable(final byte... encodeTable) {
+            final boolean isStandardEncodeTable = Arrays.equals(encodeTable, 
STANDARD_ENCODE_TABLE);
+            final boolean isUrlSafe = Arrays.equals(encodeTable, 
URL_SAFE_ENCODE_TABLE);
+            setDecodeTableRaw(isStandardEncodeTable || isUrlSafe ? 
DECODE_TABLE : calculateDecodeTable(encodeTable));
+            return super.setEncodeTable(encodeTable);
+        }
+
+        /**
+         * Sets the URL-safe encoding policy.
+         * This method does not modify behavior on decoding operations. For 
configuration of the decoding behavior,
+         * please use {@link #setDecodeTableFormat} method.
+         *
+         * @param urlSafe URL-safe encoding policy, null resets to the default.
+         * @return {@code this} instance.
+         */
+        public Builder setUrlSafe(final boolean urlSafe) {
+            return setEncodeTable(toUrlSafeEncodeTable(urlSafe));
+        }
+
     }
 
     /**

Reply via email to