Skip to content

Commit

Permalink
Make StringSwitchEcjFilter consistent with KotlinWhenStringFilter (#1099
Browse files Browse the repository at this point in the history
)
  • Loading branch information
T45K committed Apr 5, 2021
1 parent 5bbe202 commit 9a88237
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -67,13 +67,13 @@ public void match(final AbstractInsnNode start,
hashCodes = tableSwitch.labels.size();
}

final Set<AbstractInsnNode> replacements = new HashSet<AbstractInsnNode>();
replacements.add(skipNonOpcodes(defaultLabel));

if (hashCodes == 0) {
return;
}

final Set<AbstractInsnNode> replacements = new HashSet<AbstractInsnNode>();
replacements.add(skipNonOpcodes(defaultLabel));

for (int i = 0; i < hashCodes; i++) {
while (true) {
nextIsVar(Opcodes.ALOAD, "s");
Expand Down

0 comments on commit 9a88237

Please sign in to comment.