if ( leading && trailing ) {
return resolveBothSpaceTrimFunction().render( argsToUse, factory );
}
else if ( leading ) {
return resolveLeadingSpaceTrimFunction().render( argsToUse, factory );
}
else {
return resolveTrailingSpaceTrimFunction().render( argsToUse, factory );
}
if ( isCorrelation() ) {
if ( isMultiTable() ) {
return propertyMapping.toColumns( tableAlias, path );
}
else {
return propertyMapping.toColumns( extractTableName(), path );
}
}
else {
return propertyMapping.toColumns( tableAlias, path );
}
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/dialect/function/AbstractAnsiTrimEmulationFunction.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/hql/ast/tree/FromElementType.java
|
Method name: String render(List, SessionFactoryImplementor)
|
|
Method name: String[] toColumns(String, String, boolean, boolean)
|
Number of AST nodes: 5
|
|
Number of AST nodes: 5
|
|
1 | if ( leading && trailing↵ | | 1 | if ( isCorrelation() ) {↵
|
2 | ) {↵ | | 2 | if ( isMultiTable() ) {↵
|
3 | return resolveBothSpaceTrimFunction().render( argsToUse, factory );↵ | | 3 | return propertyMapping.toColumns( tableAlias, path );↵
|
4 | }↵ | | 4 | }↵
|
5 | else if ( leading ) {↵ | | 5 | else {↵
|
6 | return resolveLeadingSpaceTrimFunction().render( argsToUse, factory );↵ | | 6 | return propertyMapping.toColumns( extractTableName(), path );↵
|
7 | ↵ | | 7 | }↵
|
8 | }↵ | | 8 | }↵
|
9 | else {↵ | | 9 | else {↵
|
10 | return resolveTrailingSpaceTrimFunction().render( argsToUse, factory );↵ | | 10 | return propertyMapping.toColumns( tableAlias, path );↵
|
11 | } | | 11 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 2 |