File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/testelement/property/MapProperty.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/testelement/property/StringProperty.java | |||
Method name: void setRunningVersion(boolean)
|
Method name: void setRunningVersion(boolean)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | super.setRunningVersion(running);↵ | 1 | super.setRunningVersion(runningVersion);↵ | |
2 | if (running) {↵ | 2 | if (runningVersion) {↵ | |
3 | savedValue = value;↵ | 3 | savedValue = value;↵ | |
4 | } else {↵ | 4 | } else {↵ | |
5 | savedValue = null;↵ | 5 | savedValue = null;↵ | |
6 | } | 6 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
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 | 10 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 1.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | super.setRunningVersion(running); |
| 1 | super.setRunningVersion(runningVersion); | ||||||||||||
2 | if (running) |
| 2 | if (runningVersion) | ||||||||||||
|
| 3 | savedValue = value; | |||||||||||||
3 | savedValue = value; |
| | |||||||||||||
else | | |||||||||||||||
|
| 4 | savedValue = null; | |||||||||||||
4 | savedValue = null; |
| |
Row | Violation |
---|---|
1 | Super method call super.setRunningVersion(running); cannot be extracted from method |
2 | Super method call super.setRunningVersion(runningVersion); cannot be extracted from method |
3 | Unmatched statement savedValue=value; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
4 | Unmatched statement savedValue=value; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
5 | Unmatched statement savedValue=null; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
6 | Unmatched statement savedValue=null; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |