Formula indexForm = (Formula) s; indexFormulaTemplates[i] = indexForm.getTemplate(dialect, factory.getSqlFunctionRegistry()); indexFormulas[i] = indexForm.getFormula(); hasFormula = true;
Formula form = (Formula) selectable; elementFormulaTemplates[j] = form.getTemplate(dialect, factory.getSqlFunctionRegistry()); elementFormulas[j] = form.getFormula();
Clone fragments detected by clone detection tool
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;
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in the same method
Number of node comparisons6
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    105
    Formula indexForm = (Formula)s;
    105
    Formula indexForm = (Formula)s;
    74
    Formula form = (Formula)selectable;
    Differences
    Expression1Expression2Difference
    indexFormformVARIABLE_NAME_MISMATCH
    sselectableVARIABLE_NAME_MISMATCH
    74
    Formula form = (Formula)selectable;
    106
    indexFormulaTemplates[i] = indexForm.getTemplate(dialect, factory.getSqlFunctionRegistry());
    106
    indexFormulaTemplates[i] = indexForm.getTemplate(dialect, factory.getSqlFunctionRegistry());
    75
    elementFormulaTemplates[j] = form.getTemplate(dialect, factory.getSqlFunctionRegistry());
    Differences
    Expression1Expression2Difference
    indexFormulaTemplateselementFormulaTemplatesVARIABLE_NAME_MISMATCH
    ijVARIABLE_NAME_MISMATCH
    indexFormformVARIABLE_NAME_MISMATCH
    75
    elementFormulaTemplates[j] = form.getTemplate(dialect, factory.getSqlFunctionRegistry());
    107
    indexFormulas[i] = indexForm.getFormula();
    107
    indexFormulas[i] = indexForm.getFormula();
    76
    elementFormulas[j] = form.getFormula();
    Differences
    Expression1Expression2Difference
    indexFormulaselementFormulasVARIABLE_NAME_MISMATCH
    ijVARIABLE_NAME_MISMATCH
    indexFormformVARIABLE_NAME_MISMATCH
    76
    elementFormulas[j] = form.getFormula();
    108
    hasFormula = true;
                                              
    Precondition Violations (0)
    Row Violation