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 handleJoinedSubclass(PersistentClass, Mappings, Element, java.util.Map)
|
Method name: void handleUnionSubclass(PersistentClass, Mappings, Element, java.util.Map)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | JoinedSubclass subclass = new JoinedSubclass( model );↵ | 1 | UnionSubclass subclass = new UnionSubclass( model );↵ | |
2 | bindJoinedSubclass( subnode, subclass, mappings, inheritedMetas );↵ | 2 | bindUnionSubclass( subnode, subclass, mappings, inheritedMetas );↵ | |
3 | model.addSubclass( subclass );↵ | 3 | model.addSubclass( subclass );↵ | |
4 | mappings.addClass( subclass ); | 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 declared in the same class |
Number of node comparisons | 8 |
Number of mapped statements | 4 |
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 | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | JoinedSubclass subclass = new JoinedSubclass(model); |
| 1 | UnionSubclass subclass = new UnionSubclass(model); | |||||||||||||||||
2 | bindJoinedSubclass(subnode, subclass, mappings, inheritedMetas); |
| 2 | bindUnionSubclass(subnode, subclass, mappings, inheritedMetas); | |||||||||||||||||
3 | model.addSubclass(subclass); |
| 3 | model.addSubclass(subclass); | |||||||||||||||||
4 | mappings.addClass(subclass); |
| 4 | mappings.addClass(subclass); |
Row | Violation |
---|---|
1 | Expression bindJoinedSubclass(subnode,subclass,mappings,inheritedMetas) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression bindUnionSubclass(subnode,subclass,mappings,inheritedMetas) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression bindJoinedSubclass(subnode,subclass,mappings,inheritedMetas) is a void method call, and thus it cannot be parameterized |
4 | Expression bindUnionSubclass(subnode,subclass,mappings,inheritedMetas) is a void method call, and thus it cannot be parameterized |