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/protocol/http/util/accesslog/SharedTCLogParser.java | |||
Method name: Object clone()
|
Method name: Object clone()
|
|||
Number of AST nodes: 5 | Number of AST nodes: 4 | |||
1 | FunctionProperty prop = (FunctionProperty) super.clone();↵ | |||
2 | prop.cacheValue = cacheValue;↵ | |||
3 | prop.testIteration = testIteration;↵ | |||
4 | prop.function = function↵ | 1 | SharedTCLogParser parser = new SharedTCLogParser();↵ | |
2 | parser.FILENAME = FILENAME;↵ | |||
5 | ;↵ | 3 | parser.FILTER = FILTER;↵ | |
6 | return prop; | 4 | return parser; | |
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.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 18 |
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 4 |
Number of unmapped statements in the second code fragment | 3 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | SharedTCLogParser parser = new SharedTCLogParser(); | ||||||||||||||||||||||
1 | FunctionProperty prop = (FunctionProperty)super.clone(); | | ||||||||||||||||||||||
2 | prop.cacheValue = cacheValue; |
| 2 | parser.FILENAME = FILENAME; | ||||||||||||||||||||
| 3 | parser.FILTER = FILTER; | ||||||||||||||||||||||
3 | prop.testIteration = testIteration; | | ||||||||||||||||||||||
|
| 4 | return parser; | |||||||||||||||||||||
4 | prop.function = function; | | ||||||||||||||||||||||
5 | return prop; |
| |
Row | Violation |
---|---|
1 | Type org.apache.jmeter.testelement.property.FunctionProperty of variable prop does not match with type org.apache.jmeter.protocol.http.util.accesslog.TCLogParser of variable parser |
2 | Unmatched return parser; |
3 | Unmatched return prop; |