File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/testelement/property/TestElementProperty.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/testelement/property/MapProperty.java | |||
Method name: void recoverRunningVersion(TestElement)
|
Method name: void recoverRunningVersion(TestElement)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | if (savedValue != null) {↵ | 1 | if (savedValue != null) {↵ | |
2 | value = savedValue;↵ | 2 | value = savedValue;↵ | |
3 | }↵ | 3 | }↵ | |
4 | value.recoverRunningVersion(); | 4 | recoverRunningVersionOfSubElements(owner); | |
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 | 5 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 4095.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (savedValue != null) |
| 1 | if (savedValue != null) | ||||||||||||||||||||
| 2 | value = savedValue; | ||||||||||||||||||||||
2 | value = savedValue; | | ||||||||||||||||||||||
3 | value.recoverRunningVersion(); |
| 3 | recoverRunningVersionOfSubElements(owner); |
Row | Violation |
---|---|
1 | Type org.apache.jmeter.testelement.TestElement of variable savedValue does not match with type java.util.Map of variable savedValue |
2 | Expression value.recoverRunningVersion() is a void method call, and thus it cannot be parameterized |
3 | Expression recoverRunningVersionOfSubElements(owner) is a void method call, and thus it cannot be parameterized |
4 | Expression value.recoverRunningVersion() is a void method call, and thus it cannot be parameterized |
5 | Expression recoverRunningVersionOfSubElements(owner) is a void method call, and thus it cannot be parameterized |