File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/jdbc/config/DataSourceElement.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/save/OldSaveService.java | |||
Method name: void testEnded()
|
Method name: Collection createCollection(Configuration, String)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 3 | |||
1 | synchronized (this) {↵ | 1 | JMeterProperty prop = createProperty(items[i], testClass);↵ | |
2 | if (excaliburSource != null) {↵ | 2 | if (prop!=null) {↵ | |
3 | excaliburSource.dispose();↵ | 3 | ↵ | |
4 | }↵ | |||
5 | excaliburSource = null;↵ | |||
4 | coll.add(prop);↵ | |||
6 | } | 5 | } | |
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 |
Number of node comparisons | 6 |
Number of mapped statements | 1 |
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) | 0.5 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
| 13 | JMeterProperty prop = createProperty(items[i], testClass); | |||||||||||||||
2 | if (excaliburSource != null) |
| 14 | if (prop != null) | ||||||||||||||
3 | excaliburSource.dispose(); | | ||||||||||||||||
| 15 | coll.add(prop); |
Row | Violation |
---|---|
1 | Unmatched statement JMeterProperty prop=createProperty(items[i],testClass); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
2 | Type org.apache.avalon.excalibur.datasource.ResourceLimitingJdbcDataSource of variable excaliburSource does not match with type org.apache.jmeter.testelement.property.JMeterProperty of variable prop |