aboutsummaryrefslogtreecommitdiff
path: root/org.jacoco.core/src/org/jacoco/core/internal/flow/LabelFlowAnalyzer.java
diff options
context:
space:
mode:
Diffstat (limited to 'org.jacoco.core/src/org/jacoco/core/internal/flow/LabelFlowAnalyzer.java')
-rw-r--r--org.jacoco.core/src/org/jacoco/core/internal/flow/LabelFlowAnalyzer.java21
1 files changed, 1 insertions, 20 deletions
diff --git a/org.jacoco.core/src/org/jacoco/core/internal/flow/LabelFlowAnalyzer.java b/org.jacoco.core/src/org/jacoco/core/internal/flow/LabelFlowAnalyzer.java
index dd32a5f9..2ea154ea 100644
--- a/org.jacoco.core/src/org/jacoco/core/internal/flow/LabelFlowAnalyzer.java
+++ b/org.jacoco.core/src/org/jacoco/core/internal/flow/LabelFlowAnalyzer.java
@@ -32,13 +32,7 @@ public final class LabelFlowAnalyzer extends MethodVisitor {
* Method to mark labels
*/
public static void markLabels(final MethodNode method) {
- // We do not use the accept() method as ASM resets labels after every
- // call to accept()
- final MethodVisitor lfa = new LabelFlowAnalyzer();
- for (int i = method.tryCatchBlocks.size(); --i >= 0;) {
- method.tryCatchBlocks.get(i).accept(lfa);
- }
- method.instructions.accept(lfa);
+ method.instructions.accept(new LabelFlowAnalyzer());
}
/**
@@ -61,19 +55,6 @@ public final class LabelFlowAnalyzer extends MethodVisitor {
}
@Override
- public void visitTryCatchBlock(final Label start, final Label end,
- final Label handler, final String type) {
- // Enforce probe at the beginning of the block. Assuming the start of
- // the block already is successor of some other code, adding a target
- // makes the start a multitarget. However, if the start of the block
- // also is the start of the method, no probe will be added.
- LabelInfo.setTarget(start);
-
- // Mark exception handler as possible target of the block
- LabelInfo.setTarget(handler);
- }
-
- @Override
public void visitJumpInsn(final int opcode, final Label label) {
LabelInfo.setTarget(label);
if (opcode == Opcodes.JSR) {