File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/testelement/property/FunctionProperty.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/testelement/property/IntegerProperty.java | |||
Method name: Object clone()
|
Method name: Object clone()
|
|||
Number of AST nodes: 5 | Number of AST nodes: 3 | |||
1 | FunctionProperty prop = (FunctionProperty) super.clone();↵ | 1 | IntegerProperty prop = (IntegerProperty) super.clone();↵ | |
2 | prop.cacheValue = cacheValue;↵ | 2 | prop.value = ↵ | |
3 | prop.testIteration = testIteration;↵ | |||
4 | prop.function = function;↵ | 3 | value;↵ | |
5 | return prop; | 4 |
| |
See real code fragment | See real code fragment |
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.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 11 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | FunctionProperty prop = (FunctionProperty)super.clone(); |
| 1 | IntegerProperty prop = (IntegerProperty)super.clone(); | ||||||||||||||||||||
2 | prop.cacheValue = cacheValue; |
| | |||||||||||||||||||||
3 | prop.testIteration = testIteration; |
| 2 | prop.value = value; | ||||||||||||||||||||
4 | prop.function = function; |
| | |||||||||||||||||||||
5 | return prop; |
| 3 | return prop; |
Row | Violation |
---|---|
1 | Super method call FunctionProperty prop=(FunctionProperty)super.clone(); cannot be extracted from method |
2 | Super method call IntegerProperty prop=(IntegerProperty)super.clone(); cannot be extracted from method |
3 | Unmatched statement prop.cacheValue=cacheValue; cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
4 | Expression prop.testIteration cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression prop.value cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression prop.testIteration is a field being modified, and thus it cannot be parameterized |
7 | Expression prop.value is a field being modified, and thus it cannot be parameterized |
8 | Unmatched statement prop.function=function; cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |