File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/persister/collection/AbstractCollectionPersister.java | File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/persister/collection/AbstractCollectionPersister.java | |||
Method name: void AbstractCollectionPersister(Collection, CollectionRegionAccessStrategy, Configuration, SessionFactoryImplementor)
|
Method name: void AbstractCollectionPersister(Collection, CollectionRegionAccessStrategy, Configuration, SessionFactoryImplementor)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 3 | |||
1 | Formula indexForm = (Formula) s;↵ | 1 | Formula form = (Formula) s↵ | |
2 | index↵ | 2 | electable;↵ | |
3 | FormulaTemplates[i] = indexForm.getTemplate(dialect, factory.getSqlFunctionRegistry());↵ | 3 | elementFormulaTemplates[j] = form.getTemplate(dialect, factory.getSqlFunctionRegistry());↵ | |
4 | indexFormulas[i] = indexForm.getFormula();↵ | 4 | elementFormulas[j] = form.getFormula(); | |
5 | hasFormula = true; | |||
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
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 | 1 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
105 | Formula indexForm = (Formula)s; |
| 74 | Formula form = (Formula)selectable; | ||||||||||||||||
106 | indexFormulaTemplates[i] = indexForm.getTemplate(dialect, factory.getSqlFunctionRegistry()); |
| 75 | elementFormulaTemplates[j] = form.getTemplate(dialect, factory.getSqlFunctionRegistry()); | ||||||||||||||||
107 | indexFormulas[i] = indexForm.getFormula(); |
| 76 | elementFormulas[j] = form.getFormula(); | ||||||||||||||||
108 | hasFormula = true; | |
Row | Violation |
---|