File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/usercollection/parameterized/DefaultableListType.java | File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/usercollection/basic/MyListType.java | |||
Method name: Object replaceElements(Object, Object, CollectionPersister, Object, Map, SessionImplementor)
|
Method name: Object replaceElements(Object, Object, CollectionPersister, Object, Map, SessionImplementor)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | DefaultableList result = ( DefaultableList ) target; ↵ | 1 | IMyList result = (IMyList) target;↵ | |
2 | result.clear(); ↵ | 2 | result.clear();↵ | |
3 | result.addAll( ( DefaultableList ) original ); ↵ | 3 | result.addAll((MyList)original);↵ | |
4 | return result; | 4 |
| |
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 | 16 |
Number of mapped statements | 2 |
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.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | IMyList result = (IMyList)target; | |||||||||||||||||
1 | DefaultableList result = (DefaultableList)target; | | |||||||||||||||||
2 | result.clear(); |
| 2 | result.clear(); | |||||||||||||||
3 | result.addAll((DefaultableList)original); |
| 3 | result.addAll((MyList)original); | |||||||||||||||
|
| 4 | return result; | ||||||||||||||||
4 | return result; |
| |
Row | Violation |
---|---|
1 | Type org.hibernate.test.usercollection.parameterized.DefaultableList of variable result does not match with type org.hibernate.test.usercollection.basic.IMyList of variable result |
2 | Type org.hibernate.test.usercollection.parameterized.DefaultableList of variable (DefaultableList)original does not match with type org.hibernate.test.usercollection.basic.MyList of variable (MyList)original |
3 | Type org.hibernate.test.usercollection.parameterized.DefaultableList of variable result does not match with type org.hibernate.test.usercollection.basic.IMyList of variable result |
4 | Unmatched return result; |
5 | Unmatched return result; |