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/ObjectProperty.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 | ObjectProperty p = (ObjectProperty) super.clone();↵ | |
2 | prop.cacheValue = cacheValue;↵ | 2 | p.value = value;↵ | |
3 | prop.testIteration = testIteration;↵ | 3 | ↵ | |
4 | prop.function = function;↵ | |||
5 | return prop; | 4 | return p; | |
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 | 13 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 3 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | FunctionProperty prop = (FunctionProperty)super.clone(); |
| 1 | ObjectProperty p = (ObjectProperty)super.clone(); | |||||||||||||||||||||
|
| 2 | p.value = value; | ||||||||||||||||||||||
2 | prop.cacheValue = cacheValue; |
| | ||||||||||||||||||||||
3 | prop.testIteration = testIteration; |
| | ||||||||||||||||||||||
4 | prop.function = function; |
| | ||||||||||||||||||||||
5 | return prop; |
| 3 | return p; |
Row | Violation |
---|---|
1 | Super method call FunctionProperty prop=(FunctionProperty)super.clone(); cannot be extracted from method |
2 | Super method call ObjectProperty p=(ObjectProperty)super.clone(); cannot be extracted from method |
3 | Unmatched statement p.value=value; cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
4 | 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 |
5 | Unmatched statement prop.testIteration=testIteration; cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
6 | 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 |