for (int i=0; i<propertyNames.length; i++) { Object value = values[i]; Type subtype = subtypes[i]; String subpath = StringHelper.qualify( path, propertyNames[i] ); if ( isPropertyIncluded(value, subpath, subtype) ) { if ( subtype.isComponentType() ) { addComponentTypedValues(subpath, value, (AbstractComponentType) subtype, list, criteria, criteriaQuery); } else { addPropertyTypedValue(value, subtype, list); } } }
String subpath = StringHelper.qualify( path, propertyNames[i] ); Object value = values[i]; if ( isPropertyIncluded( value, subpath, subtypes[i] ) ) { 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: 8 Number of AST nodes: 4
1
for (int i=0; i<propertyNames.length; i++) {
2
				Object value = values[i];
3
				Type subtype = subtypes[i];
4
				String subpath = StringHelper.qualify( path, propertyNames[i] );
1
String subpath = StringHelper.qualify( path, propertyNames[i] );
5
				
2
				Object value = values[i];
6
if ( isPropertyIncluded(value, subpath, subtype) ) {
3
				if ( isPropertyIncluded( value, subpath, subtypes[i] ) ) {
7
					
4
					Type subtype = subtypes[i];
8
if ( subtype.isComponentType() ) {
5
					if ( subtype.isComponentType() ) {
9
						addComponentTypedValues(subpath, value, 
6
						appendComponentCondition(
7
							subpath,
8
							value,
10
(AbstractComponentType) subtype, list, 
9
							(AbstractComponentType) subtype,
11
criteria, 
10
							criteria,
12
criteriaQuery);
11
							criteriaQuery,
13
					}
12
					
14
					else {
15
						addPropertyTypedValue(value, subtype, list);
16
					}
17
				}
18
			}
13
		buf
14
						);
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are declared in the same class
Number of node comparisons17