Skip to content

Commit

Permalink
KotlinWhenFilter should be stateless
Browse files Browse the repository at this point in the history
  • Loading branch information
Godin committed Aug 20, 2018
1 parent 964778b commit 39a2590
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,9 @@ public final class KotlinWhenFilter implements IFilter {

private static final String EXCEPTION = "kotlin/NoWhenBranchMatchedException";

private final Matcher matcher = new Matcher();

public void filter(final MethodNode methodNode,
final IFilterContext context, final IFilterOutput output) {
final Matcher matcher = new Matcher();
for (AbstractInsnNode i = methodNode.instructions
.getFirst(); i != null; i = i.getNext()) {
matcher.match(i, output);
Expand Down

0 comments on commit 39a2590

Please sign in to comment.