File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/cfg/HbmBinder.java | File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/cfg/HbmBinder.java | |||
Method name: void bindCollectionSecondPass(Element, Collection, java.util.Map, Mappings, java.util.Map)
|
Method name: void bindCollection(Element, Collection, String, String, Mappings, java.util.Map)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | Any element = new Any( collection.getCollectionTable() );↵ | 1 | OneToMany oneToMany = new OneToMany( collection.getOwner() );↵ | |
2 | collection.setElement( element );↵ | 2 | collection.setElement( oneToMany );↵ | |
3 | bindAny( subnode, element, true, mappings ); | 3 | bindOneToMany( oneToManyNode, oneToMany, mappings ); | |
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 declared in the same class |
Number of node comparisons | 7 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
45 | Any element = new Any(collection.getCollectionTable()); |
| | ||||||||||||||||||
| 49 | OneToMany oneToMany = new OneToMany(collection.getOwner()); | |||||||||||||||||||
46 | collection.setElement(element); |
| 50 | collection.setElement(oneToMany); | |||||||||||||||||
47 | bindAny(subnode, element, true, mappings); |
| 51 | bindOneToMany(oneToManyNode, oneToMany, mappings); |
Row | Violation |
---|---|
1 | Unmatched statement Any element=new Any(collection.getCollectionTable()); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
2 | Type org.hibernate.mapping.Any of variable element does not match with type org.hibernate.mapping.OneToMany of variable oneToMany |
3 | Expression bindAny(subnode,element,true,mappings) is a void method call, and thus it cannot be parameterized |
4 | Expression bindOneToMany(oneToManyNode,oneToMany,mappings) is a void method call, and thus it cannot be parameterized |
5 | Expression bindAny(subnode,element,true,mappings) is a void method call, and thus it cannot be parameterized |
6 | Expression bindOneToMany(oneToManyNode,oneToMany,mappings) is a void method call, and thus it cannot be parameterized |