if (isSkipNext()) {
reInitialize();
return null;
}
return super.next();
if(endOfLoop()) {
return null;
}
return super.next();
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/control/InterleaveControl.java
|
|
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/control/LoopController.java
|
Method name: Sampler next()
|
|
Method name: Sampler next()
|
Number of AST nodes: 4
|
|
Number of AST nodes: 3
|
|
1 | if (isSkipNext()) {↵ | | 1 | if↵
|
2 | reInitialize();↵ | | |
|
3 | return null;↵ | | |
|
4 | }↵ | | |
|
5 | ↵ | | 2 | (endOfLoop()) {↵
|
| | | 3 | return null;↵
|
| | | 4 | }↵
|
6 | return super.next(); | | 5 | return super.next();
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
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 | 7 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.5 |
Clone type | Type 3 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
1 | if (isSkipNext()) | | 1 | if (endOfLoop()) |
2 | | | | |
3 | | | 2 | |
4 | return super.next(); | | 3 | return super.next(); |
Precondition Violations (0)
Row |
Violation |