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 bindCollectionSecondPass(Element, Collection, java.util.Map, Mappings, java.util.Map)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | Any element = new Any( collection.getCollectionTable() );↵ | 1 | SimpleValue elt = new SimpleValue( collection.getCollectionTable() );↵ | |
2 | collection.setElement( element );↵ | 2 | collection.setElement( elt );↵ | |
3 | bindAny( subnode, element, true, ↵ | 3 | bindSimpleValue(↵ | |
4 | subnode,↵ | |||
5 | elt,↵ | |||
6 | true,↵ | |||
7 | Collection.DEFAULT_ELEMENT_COLUMN_NAME,↵ | |||
4 | mappings ↵ | 8 | mappings↵ | |
5 | ); | 9 | ); | |
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 the same method |
Number of node comparisons | 6 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
45 | Any element = new Any(collection.getCollectionTable()); |
| 32 | SimpleValue elt = new SimpleValue(collection.getCollectionTable()); | |||||||||||||||||||||
46 | collection.setElement(element); |
| 33 | collection.setElement(elt); | |||||||||||||||||||||
47 | bindAny(subnode, element, true, mappings); |
| 34 | bindSimpleValue(subnode, elt, true, Collection.DEFAULT_ELEMENT_COLUMN_NAME, mappings); |
Row | Violation |
---|---|
1 | Expression bindAny(subnode,element,true,mappings) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression bindSimpleValue(subnode,elt,true,Collection.DEFAULT_ELEMENT_COLUMN_NAME,mappings) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression bindAny(subnode,element,true,mappings) is a void method call, and thus it cannot be parameterized |
4 | Expression bindSimpleValue(subnode,elt,true,Collection.DEFAULT_ELEMENT_COLUMN_NAME,mappings) is a void method call, and thus it cannot be parameterized |
5 | Expression bindAny(subnode,element,true,mappings) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression bindSimpleValue(subnode,elt,true,Collection.DEFAULT_ELEMENT_COLUMN_NAME,mappings) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression bindAny(subnode,element,true,mappings) is a void method call, and thus it cannot be parameterized |
8 | Expression bindSimpleValue(subnode,elt,true,Collection.DEFAULT_ELEMENT_COLUMN_NAME,mappings) is a void method call, and thus it cannot be parameterized |