diff options
author | Evgeny Mandrikov <Godin@users.noreply.github.com> | 2018-08-20 22:07:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-20 22:07:57 +0200 |
commit | 1e01244a7b82a61149523c1be475505062e6c297 (patch) | |
tree | 77af3e0afbeaae97029782e97c2005211879ca90 /org.jacoco.core/src/org/jacoco/core | |
parent | 1cd039a534b9e9354b1a7f6de797c0a99d75291c (diff) | |
download | jacoco-1e01244a7b82a61149523c1be475505062e6c297.tar.gz |
KotlinWhenFilter should be stateless (#749)
Diffstat (limited to 'org.jacoco.core/src/org/jacoco/core')
-rw-r--r-- | org.jacoco.core/src/org/jacoco/core/internal/analysis/filter/KotlinWhenFilter.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/org.jacoco.core/src/org/jacoco/core/internal/analysis/filter/KotlinWhenFilter.java b/org.jacoco.core/src/org/jacoco/core/internal/analysis/filter/KotlinWhenFilter.java index 24b90c0e..a39356f9 100644 --- a/org.jacoco.core/src/org/jacoco/core/internal/analysis/filter/KotlinWhenFilter.java +++ b/org.jacoco.core/src/org/jacoco/core/internal/analysis/filter/KotlinWhenFilter.java @@ -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); |