NativeSQLQueryNonScalarReturn rtn = ( NativeSQLQueryNonScalarReturn ) queryReturns[i];
alias2Return.put( rtn.getAlias(), rtn );
if ( rtn instanceof NativeSQLQueryJoinReturn ) {
NativeSQLQueryJoinReturn fetchReturn = ( NativeSQLQueryJoinReturn ) rtn;
alias2OwnerAlias.put( fetchReturn.getAlias(), fetchReturn.getOwnerAlias() );
}
Property prop = (Property) iter.next();
boolean[] chunk = prop.getValue().getColumnInsertability();
if ( prop.isInsertable() ) {
System.arraycopy(chunk, 0, result, i, chunk.length);
}
i+=chunk.length;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/loader/custom/sql/SQLQueryReturnProcessor.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/mapping/Component.java
|
Method name: ResultAliasContext process()
|
|
Method name: boolean[] getColumnInsertability()
|
Number of AST nodes: 5
|
|
Number of AST nodes: 5
|
|
1 | NativeSQLQueryNonScalarReturn rtn = ( NativeSQLQueryNonScalarReturn ) queryReturns[i];↵ | | |
|
2 | alias2Return.put( rtn.getAlias(), rtn );↵ | | |
|
3 | if ( rtn instanceof NativeSQLQueryJoinReturn↵ | | 1 | Property prop = (Property) iter.next();↵
|
| | | 2 | boolean[] chunk = prop.getValue().getColumnInsertability();↵
|
4 | ) {
↵ | | 3 | if ( prop.isInsertable() ) {↵
|
5 | NativeSQLQueryJoinReturn fetchReturn = ( NativeSQLQueryJoinReturn ) rtn;↵ | | 4 | ↵
|
6 | alias2OwnerAlias.put( fetchReturn.getAlias(), fetchReturn.getOwnerAlias() );↵ | | |
|
7 | } | | 5 | System.arraycopy(chunk, 0, result, i, chunk.length);↵
|
| | | 6 | }↵
|
| | | 7 | i+=chunk.length;
|
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 |