ForeignKey fk = (ForeignKey) subIter.next();
while ( ukiter.hasNext() ) {
UniqueKey uk = (UniqueKey) ukiter.next();
String constraint = uk.sqlConstraintString( dialect );
if ( constraint != null ) {
buf.append( ", " ).append( constraint );
}
}
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/cfg/Configuration.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/mapping/Table.java
|
Method name: String[] generateSchemaCreationScript(Dialect)
|
|
Method name: String sqlCreateString(Dialect, Mapping, String, String)
|
Number of AST nodes: 1
|
|
Number of AST nodes: 5
|
|
1 | Foreign↵ | | 1 | while ( ukiter.hasNext() ) {↵
|
2 | Key fk = (ForeignKey) subIter.next(); | | 2 | UniqueKey uk = (UniqueKey) ukiter.next();↵
|
| | | 3 | String constraint = uk.sqlConstraintString( dialect );↵
|
| | | 4 | if ( constraint != null ) {↵
|
| | | 5 | buf.append( ", " ).append( constraint );↵
|
| | | 6 | }↵
|
| | | 7 | }
|
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 | Clones are in different classes |
Number of node comparisons | 5 |