while ( iter.hasNext() ) {
cols.clear();
Join join = (Join) iter.next();
checkColumnDuplication( cols, join.getKey().getColumnIterator() );
checkPropertyColumnDuplication( cols, join.getPropertyIterator() );
}
final Map.Entry e = (Map.Entry) iter.next();
if ( conditionsAppended ) {
buf.append( " and " );
}
buf.append( e.getKey() ).append( e.getValue() );
conditionsAppended = true;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/mapping/PersistentClass.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/sql/Update.java
|
Method name: void checkColumnDuplication()
|
|
Method name: String toStatementString()
|
Number of AST nodes: 5
|
|
Number of AST nodes: 5
|
|
1 | while ( iter.hasNext() ) {↵ | | 1 | final Map.Entry e = (Map.Entry) iter.next()↵
|
2 | cols.clear();↵ | | |
|
3 | Join join = (Join) iter.next();↵ | | |
|
4 | checkColumnDuplication( cols, join.getKey().getColumnIterator() );↵ | | |
|
5 | checkPropertyColumnDuplication( cols, join.getPropertyIterator() );↵ | | |
|
6 | } | | 2 | ;↵
|
| | | 3 | if ( conditionsAppended ) {↵
|
| | | 4 | buf.append( " and " );↵
|
| | | 5 | }↵
|
| | | 6 | buf.append( e.getKey() ).append( e.getValue() );↵
|
| | | 7 | conditionsAppended = true;
|
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 | 1 |