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

pkarwasz pushed a commit to branch fix/git-identifiers
in repository https://gitbox.apache.org/repos/asf/commons-codec.git


The following commit(s) were added to refs/heads/fix/git-identifiers by this 
push:
     new b047d7a8 Sort methods
b047d7a8 is described below

commit b047d7a8501514d31eca74bdc8b08a8a5b1a3854
Author: Piotr P. Karwasz <[email protected]>
AuthorDate: Sun Apr 12 18:45:42 2026 +0200

    Sort methods
---
 .../commons/codec/digest/GitIdentifiersTest.java       | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git 
a/src/test/java/org/apache/commons/codec/digest/GitIdentifiersTest.java 
b/src/test/java/org/apache/commons/codec/digest/GitIdentifiersTest.java
index bc8a3c16..48fe8e4d 100644
--- a/src/test/java/org/apache/commons/codec/digest/GitIdentifiersTest.java
+++ b/src/test/java/org/apache/commons/codec/digest/GitIdentifiersTest.java
@@ -63,15 +63,6 @@ class GitIdentifiersTest {
     //   hello.txt                (regular file)
     //   run.sh                   (executable file)
 
-    /** Decodes a compile-time hex literal; throws {@link AssertionError} on 
malformed input. */
-    private static byte[] hex(final String hex) {
-        try {
-            return Hex.decodeHex(hex);
-        } catch (final DecoderException e) {
-            throw new AssertionError(e);
-        }
-    }
-
     /** Content of {@code src/hello.txt}. */
     private static final byte[] HELLO_CONTENT = 
"hello\n".getBytes(StandardCharsets.UTF_8);
     /** SHA-1 blob id of {@link #HELLO_CONTENT}: {@code printf 'hello\n' | git 
hash-object --stdin} */
@@ -146,6 +137,15 @@ class GitIdentifiersTest {
                 Arguments.of("DigestUtilsTest/subdir/nested.txt", 
"07a392ddb4dbff06a373a7617939f30b2dcfe719"));
     }
 
+    /** Decodes a compile-time hex literal; throws {@link AssertionError} on 
malformed input. */
+    private static byte[] hex(final String hex) {
+        try {
+            return Hex.decodeHex(hex);
+        } catch (final DecoderException e) {
+            throw new AssertionError(e);
+        }
+    }
+
     private static Path resourcePath(final String resourceName) throws 
Exception {
         return 
Paths.get(GitIdentifiersTest.class.getClassLoader().getResource(resourceName).toURI());
     }

Reply via email to