if ( isPropertyIncluded(value, subpath, subtype) ) {
if ( subtype.isComponentType() ) {
addComponentTypedValues(subpath, value, (AbstractComponentType) subtype, list, criteria, criteriaQuery);
}
else {
addPropertyTypedValue(value, subtype, list);
}
}
Type subtype = subtypes[i];
if ( subtype.isComponentType() ) {
appendComponentCondition(
subpath,
value,
(AbstractComponentType) subtype,
criteria,
criteriaQuery,
buf
);
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/criterion/Example.java
|
Method name: void addComponentTypedValues(String, Object, AbstractComponentType, List, Criteria, CriteriaQuery)
|
|
Method name: void appendComponentCondition(String, Object, AbstractComponentType, Criteria, CriteriaQuery, StringBuffer)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 2
|
|
1 | if ( isPropertyIncluded(value, subpath, subtype) ) {↵ | | 1 | Type subtype = subtypes[i];↵
|
2 | if ( subtype.isComponentType() ) {↵ | | 2 | if ( subtype.isComponentType() ) {↵
|
3 | addComponentTypedValues(subpath, value, ↵ | | 3 | appendComponentCondition(↵
|
| | | 4 | subpath,↵
|
| | | 5 | value,↵
|
4 | (AbstractComponentType) subtype, list, ↵ | | 6 | (AbstractComponentType) subtype,↵
|
5 | criteria, ↵ | | 7 | criteria,↵
|
6 | criteriaQuery);↵ | | 8 | criteriaQuery,↵
|
7 | }↵ | | 9 | ↵
|
8 | else {↵ | | |
|
9 | addPropertyTypedValue(value, subtype, list);↵ | | |
|
10 | }↵ | | |
|
11 | } | | 10 | buf↵
|
| | | 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.0 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 8 |