You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by el...@apache.org on 2025/07/10 14:52:14 UTC

(maven-dependency-analyzer) branch test created (now fc78242)

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

elharo pushed a change to branch test
in repository https://gitbox.apache.org/repos/asf/maven-dependency-analyzer.git


      at fc78242  move default to end

This branch includes the following new commits:

     new fc78242  move default to end

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(maven-dependency-analyzer) 01/01: move default to end

Posted by el...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

elharo pushed a commit to branch test
in repository https://gitbox.apache.org/repos/asf/maven-dependency-analyzer.git

commit fc7824224f0cd52be42bb48abf84f70d33226a4f
Author: Elliotte Rusty Harold <el...@ibiblio.org>
AuthorDate: Thu Jul 10 10:52:01 2025 -0400

    move default to end
---
 .../maven/shared/dependency/analyzer/asm/ConstantPoolParser.java      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/maven/shared/dependency/analyzer/asm/ConstantPoolParser.java b/src/main/java/org/apache/maven/shared/dependency/analyzer/asm/ConstantPoolParser.java
index 535187f..1b9da80 100644
--- a/src/main/java/org/apache/maven/shared/dependency/analyzer/asm/ConstantPoolParser.java
+++ b/src/main/java/org/apache/maven/shared/dependency/analyzer/asm/ConstantPoolParser.java
@@ -120,8 +120,6 @@ public class ConstantPoolParser {
         for (int ix = 1, num = buf.getChar(); ix < num; ix++) {
             byte tag = buf.get();
             switch (tag) {
-                default:
-                    throw new RuntimeException("Unknown constant pool type '" + tag + "'");
                 case CONSTANT_UTF8:
                     stringConstants.put(ix, decodeString(buf));
                     break;
@@ -172,6 +170,8 @@ public class ConstantPoolParser {
                 case CONSTANT_PACKAGE:
                     consumePackage(buf);
                     break;
+                default:
+                    throw new RuntimeException("Unknown constant pool type '" + tag + "'");
             }
         }