aboutsummaryrefslogtreecommitdiff
path: root/org.jacoco.core/src/org/jacoco/core/internal/analysis
diff options
context:
space:
mode:
authorMarc R. Hoffmann <hoffmann@mountainminds.com>2011-11-25 11:13:40 +0000
committerMarc R. Hoffmann <hoffmann@mountainminds.com>2011-11-25 11:13:40 +0000
commitd8e44e49b694283f27e84736164882fa60c1a7d7 (patch)
tree73e71a6dfe56344b4e6f5b70e0ecf907d4446388 /org.jacoco.core/src/org/jacoco/core/internal/analysis
parent23a98a90c73ab440f4d81df05765a2f22c1ea9a8 (diff)
downloadjacoco-d8e44e49b694283f27e84736164882fa60c1a7d7.tar.gz
Trac #179: Try/catch blocks must not be counted as instructions.
Diffstat (limited to 'org.jacoco.core/src/org/jacoco/core/internal/analysis')
-rw-r--r--org.jacoco.core/src/org/jacoco/core/internal/analysis/MethodAnalyzer.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/org.jacoco.core/src/org/jacoco/core/internal/analysis/MethodAnalyzer.java b/org.jacoco.core/src/org/jacoco/core/internal/analysis/MethodAnalyzer.java
index b4f01295..17197e1b 100644
--- a/org.jacoco.core/src/org/jacoco/core/internal/analysis/MethodAnalyzer.java
+++ b/org.jacoco.core/src/org/jacoco/core/internal/analysis/MethodAnalyzer.java
@@ -184,11 +184,6 @@ public class MethodAnalyzer implements IMethodProbesVisitor {
visitInsn();
}
- public void visitTryCatchBlock(final Label start, final Label end,
- final Label handler, final String type) {
- visitInsn();
- }
-
public void visitProbe(final int probeId) {
addProbe(probeId);
lastInsn = null;
@@ -286,6 +281,11 @@ public class MethodAnalyzer implements IMethodProbesVisitor {
// nothing to do
}
+ public void visitTryCatchBlock(final Label start, final Label end,
+ final Label handler, final String type) {
+ // nothing to do
+ }
+
public void visitFrame(final int type, final int nLocal,
final Object[] local, final int nStack, final Object[] stack) {
// nothing to do