for ( int i = 0; i < idColumnNames.length; i++ ) {
buf.append( fromElement.getTableAlias() ).append( '.' ).append( idColumnNames[i] );
if ( i != idColumnNames.length - 1 ) buf.append( ", " );
}
for ( int i = 0; i < ids.length; i++ ) {
// Need to use the identifier type of the collection owner
// since the incoming is value is actually the owner's id.
// Using the collection's key type causes problems with
// property-ref keys...
s.append( persister.getOwnerEntityPersister().getIdentifierType().toLoggableString( ids[i], factory ) );
if ( i < ids.length-1 ) {
s.append( ", " );
}
}
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/hql/ast/tree/FromElementType.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/pretty/MessageHelper.java
|
Method name: String renderIdentifierSelect(int, int)
|
|
Method name: String collectionInfoString(CollectionPersister, Serializable[], SessionFactoryImplementor)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | for ( int i = 0; i < idColumnNames.length; i++ ) {↵ | | 1 | for ( int i = 0; i < ids.length; i++ ) {↵
|
2 | buf.append( fromElement.getTableAlias() ).append( '.' ).append( idColumnNames[i] );↵ | | 2 | ↵
|
3 | if ( i != idColumnName↵ | | 3 | // Need to use the identifier type of the collection owner↵
|
| | | 4 | // since the incoming is value is actually the owner's id.↵
|
| | | 5 | // Using the collection's key type causes problems with↵
|
| | | 6 | // property-ref keys...↵
|
| | | 7 | s.append( persister.getOwnerEntityPersister().getIdentifierType().toLoggableString( ids[i], factory ) );↵
|
4 | s.length - 1 ) buf↵ | | 8 | if ( i < ids.length-1 ) {↵
|
5 | .append( ", " );↵ | | 9 | s.append( ", " );↵
|
6 | ↵ | | 10 | }↵
|
7 | } | | 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.2 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |