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 bindColumnsOrFormula(Element, SimpleValue, String, boolean, Mappings)
|
Method name: void bindColumns(Element, SimpleValue, boolean, boolean, String, Mappings)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 4 | |||
1 | if ( columnElement.getName().equals( "formula" ) ) {↵ | |||
1 | Formula f = new Formula();↵ | 2 | Formula formula = new Formula();↵ | |
2 | f.setFormula( formulaNode.getText() );↵ | 3 | formula.setFormula( columnElement.getText() );↵ | |
3 | simpleValue.addFormula( f ); | 4 | simpleValue.addFormula( formula );↵ | |
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.0 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 5 |
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 | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3 | Formula f = new Formula(); |
| 24 | Formula formula = new Formula(); | |||||||||||||||||
4 | f.setFormula(formulaNode.getText()); |
| 25 | formula.setFormula(columnElement.getText()); | |||||||||||||||||
5 | simpleValue.addFormula(f); |
| 26 | simpleValue.addFormula(formula); |
Row | Violation |
---|---|
1 | Type org.dom4j.Attribute of variable formulaNode does not match with type org.dom4j.Element of variable columnElement |