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/04/18 10:58:49 UTC

(maven-dependency-analyzer) branch default created (now 2b27e7b)

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

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


      at 2b27e7b  move default to end

This branch includes the following new commits:

     new 2b27e7b  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 default
in repository https://gitbox.apache.org/repos/asf/maven-dependency-analyzer.git

commit 2b27e7bf33d767ecb131ef277a1882e63235a89c
Author: Elliotte Rusty Harold <el...@ibiblio.org>
AuthorDate: Fri Apr 18 06:58:30 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 76da741..0381efd 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 + "'");
             }
         }