if (isResetInterpreter()) {
try {
bshInterpreter.reset();
} catch (ClassNotFoundException e) {
log.error("Cannot reset BeanShell: "+e.toString());
}
}
if (wait > 0) {
try {
Thread.sleep(wait);
} catch (InterruptedException e1) {
// ignore
}
}
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/util/BeanShellTestElement.java
|
|
File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/junit/stubs/TestSampler.java
|
Method name: BeanShellInterpreter getBeanShellInterpreter()
|
|
Method name: SampleResult sample(Entry)
|
Number of AST nodes: 3
|
|
Number of AST nodes: 3
|
|
1 | if (isResetInterpreter()) {↵ | | 1 | if (↵
|
2 | try {↵ | | |
|
3 | bshInterpreter.reset();↵ | | |
|
4 | } catch (ClassNotFoun↵ | | 2 | wait > 0) {↵
|
| | | 3 | try {↵
|
| | | 4 | Thread.sleep(wait);↵
|
5 | dException e) {↵ | | 5 | } catch (InterruptedException e1) {↵
|
6 | log.error("Cannot reset BeanShell: "+e.toString());↵ | | |
|
7 | }↵ | | |
|
8 | ↵ | | 6 | // ignore↵
|
| | | 7 | }↵
|
9 | } | | 8 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.1 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 1 |