if ( isPropertyIncluded(value, subpath, subtype) ) {
if ( subtype.isComponentType() ) {
addComponentTypedValues(subpath, value, (AbstractComponentType) subtype, list, criteria, criteriaQuery);
}
else {
addPropertyTypedValue(value, subtype, list);
}
}
if ( hasIndex && !indexContainsFormula ) {
writeIndexToWhere( st, collection.getIndex( entry, i, this ), loc, session );
}
else {
writeElementToWhere( st, collection.getSnapshotElement( entry, i ), loc, session );
}
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/criterion/Example.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/persister/collection/BasicCollectionPersister.java
|
Method name: void addComponentTypedValues(String, Object, AbstractComponentType, List, Criteria, CriteriaQuery)
|
|
Method name: int doUpdateRows(Serializable, PersistentCollection, SessionImplementor)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 3
|
|
1 | if ( isPropertyIncluded(value, subpath, subtype) ) {↵ | | 1 | if ( ↵
|
2 | if ( subtype.isComponentType() ) {↵ | | |
|
3 | addComponentTypedValues(subpath, value, (AbstractComponentType) subtype, list, criteria, criteriaQuery↵ | | 2 | hasIndex && !indexContainsFormula ) {↵
|
4 | );↵ | | 3 | writeIndexToWhere( st, collection.getIndex( entry, i, this ), loc, session );↵
|
5 | }↵ | | 4 | }↵
|
6 | else {↵ | | 5 | else {↵
|
7 | addPropertyTypedValue(value, subtype, list);↵ | | 6 | writeElementToWhere( st, collection.getSnapshotElement( entry, i ), loc, session );↵
|
8 | }↵ | | 7 | ↵
|
9 | } | | 8 | }
|
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.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |