synchronized (this) {
while (threadsRunning > 0) {
wait();
}
}
for (int i = 1; i < result.groups(); i++) {
value = result.group(i);
if (value != null) {
break;
}
}
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/assertions/PackageTest.java
|
|
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/modifier/URLRewritingModifier.java
|
Method name: void testThreadSafety()
|
|
Method name: void process()
|
Number of AST nodes: 3
|
|
Number of AST nodes: 4
|
|
1 | synchronized (this) {↵ | | |
|
2 | while (threadsRunning > 0↵ | | 1 | for (int i = 1; i < result.groups(); i++) {↵
|
| | | 2 | value = result.group(i);↵
|
3 | ) {↵ | | 3 | if (value != null) {↵
|
4 | wait();↵ | | 4 | break;↵
|
5 | }↵ | | 5 | }↵
|
6 | } | | 6 | }
|
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.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |