frag.addColumns(
generateTableAlias( alias, propertyTableNumbers[i] ),
propertyColumnNames[i],
propertyColumnAliases[i]
);
frag.addFormulas(
generateTableAlias( alias, propertyTableNumbers[i] ),
propertyColumnFormulaTemplates[i],
propertyColumnAliases[i]
);
if ( includeProperty[i] && isPropertyOfTable( i, j ) ) {
getPropertyTypes()[i].nullSafeSet( ps, fields[i], index, includeColumns[i], session );
//index += getPropertyColumnSpan( i );
index += ArrayHelper.countTrue( includeColumns[i] ); //TODO: this is kinda slow...
}
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java
|
Method name: String concretePropertySelectFragment(String, InclusionChecker)
|
|
Method name: int dehydrate(Serializable, Object[], Object, boolean[], boolean[][], int, PreparedStatement, SessionImplementor, int)
|
Number of AST nodes: 2
|
|
Number of AST nodes: 3
|
|
1 | frag.addColumns(↵ | | |
|
2 | generateTableAlias( alias, propertyTableNumbers[i] ),↵ | | 1 | if ( includeProperty[i] && isPropertyOfTable↵
|
3 | propertyColumnNames[i],↵ | | |
|
4 | propertyColumnAliases[i]↵ | | |
|
5 | );↵ | | |
|
6 | frag.addFormulas(↵ | | |
|
7 | generateTableAlias( alias, propertyTableNumbers[i]↵ | | 2 | ( i, j ) ) {↵
|
8 | ),↵ | | 3 | getPropertyTypes()[i].nullSafeSet( ps, fields[i], index, includeColumns[i], session );↵
|
9 | propertyColumnFormulaTemplates[i],↵ | | 4 | ↵
|
10 | propertyColumnAliases[i]↵ | | 5 | //index += getPropertyColumnSpan( i );↵
|
| | | 6 | index += ArrayHelper.countTrue( includeColumns[i] ); //TODO: this is kinda slow...↵
|
11 | ); | | 7 | }
|
See real code fragment |
|
See real code fragment |
Summary
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 | 4 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 0 |
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 | Unknown type |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
Precondition Violations (0)
Row |
Violation |