try {
managersInUse.wait();
} catch (InterruptedException e) {
log.info("SessionFilter wait interrupted");
}
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/protocol/http/util/accesslog/SessionFilter.java
|
|
File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/junit/stubs/TestSampler.java
|
Method name: CookieManager getCookieManager(String)
|
|
Method name: SampleResult sample(Entry)
|
Number of AST nodes: 2
|
|
Number of AST nodes: 3
|
|
1 | try {↵ | | |
|
2 | managersInUse.↵ | | 1 | if (wait > 0) {↵
|
| | | 2 | try {↵
|
3 | wait();↵ | | 3 | Thread.sleep(wait);↵
|
4 | } catch (InterruptedException e) {↵ | | 4 | } catch (InterruptedException e1) {↵
|
5 | log.info("SessionFilter wait interrupted");↵ | | |
|
6 | ↵ | | 5 | // ignore↵
|
| | | 6 | }↵
|
7 | } | | 7 | }
|
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 |
Number of node comparisons | 1 |