if (propertyName==null) {
return ArrayHelper.slice(
lhsPersister.toColumns(alias, property),
begin,
type.getColumnSpan(mapping)
);
}
else {
return ( (PropertyMapping) lhsPersister ).toColumns(alias, propertyName); //bad cast
}
if ( dialect.supportsUniqueConstraintInCreateAlterTable() ) {
return super.sqlCreateString( dialect, p, defaultCatalog, defaultSchema );
}
else {
return Index.buildSqlCreateIndexString( dialect, getName(), getTable(), getColumnIterator(), true,
defaultCatalog, defaultSchema );
}
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/engine/JoinHelper.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/mapping/UniqueKey.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | if (propertyName==null) {↵ | | 1 | if ( dialect.supportsUniqueConstraintInCreateAlterTable() ) {↵
|
2 | return ArrayHelper.slice( ↵ | | 2 | return ↵
|
3 | lhsPersister.toColumns(alias, property), ↵ | | |
|
4 | begin, ↵ | | |
|
5 | type.getColumnSpan(mapping) ↵ | | |
|
6 | );↵ | | 3 | super.sqlCreateString( dialect, p, defaultCatalog, defaultSchema );↵
|
7 | }↵ | | 4 | }↵
|
8 | else {↵ | | 5 | else {↵
|
9 | return ( (PropertyMapping) lhsPersister ).toColumns(alias, propertyName); //bad cast↵ | | 6 | return ↵
|
10 | ↵ | | 7 | Index.buildSqlCreateIndexString( dialect, getName(), getTable(), getColumnIterator(), true,↵
|
| | | 8 | defaultCatalog, defaultSchema );↵
|
11 | } | | 9 | }
|
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.0 |
Clones location | |
Number of node comparisons | 0 |