Skip to content

Commit fc78242

Browse files
committed
move default to end
1 parent 316b8dd commit fc78242

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/apache/maven/shared/dependency/analyzer/asm/ConstantPoolParser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,6 @@ private static Set<String> parseConstantPoolClassReferences(ByteBuffer buf) {
120120
for (int ix = 1, num = buf.getChar(); ix < num; ix++) {
121121
byte tag = buf.get();
122122
switch (tag) {
123-
default:
124-
throw new RuntimeException("Unknown constant pool type '" + tag + "'");
125123
case CONSTANT_UTF8:
126124
stringConstants.put(ix, decodeString(buf));
127125
break;
@@ -172,6 +170,8 @@ private static Set<String> parseConstantPoolClassReferences(ByteBuffer buf) {
172170
case CONSTANT_PACKAGE:
173171
consumePackage(buf);
174172
break;
173+
default:
174+
throw new RuntimeException("Unknown constant pool type '" + tag + "'");
175175
}
176176
}
177177

0 commit comments

Comments
 (0)