return concretePropertySelectFragment( alias, new InclusionChecker() { // TODO : currently we really do not handle ValueInclusion.PARTIAL... // ValueInclusion.PARTIAL would indicate parts of a component need to // be included in the select; currently we then just render the entire // component into the select clause in that case. public boolean includeProperty(int propertyNumber) { return inclusions[propertyNumber] != ValueInclusion.NONE; } } );
return concretePropertySelectFragment( alias, new InclusionChecker() { public boolean includeProperty(int propertyNumber) { return includeProperty[propertyNumber]; } } );
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java
Method name: String concretePropertySelectFragment(String, ValueInclusion[]) Method name: String concretePropertySelectFragment(String, boolean[])
Number of AST nodes: 1 Number of AST nodes: 1
1
return concretePropertySelectFragment(
1
return concretePropertySelectFragment(
2
				alias,
2
				alias,
3
				new InclusionChecker() {
3
				new InclusionChecker() {
4
					// TODO : currently we really do not handle ValueInclusion.PARTIAL...
4
					
5
					// ValueInclusion.PARTIAL would indicate parts of a component need to
6
					// be included in the select; currently we then just render the entire
7
					// component into the select clause in that case.
8
					public boolean includeProperty(int propertyNumber) {
5
public boolean includeProperty(int propertyNumber) {
9
						return inclusions[propertyNumber] != ValueInclusion.NONE;
6
						return includeProperty[propertyNumber];
10
					}
7
					}
11
				}
8
				}
12
		);
9
		);
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
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 comparisons1
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements1
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    return concretePropertySelectFragment(alias, new InclusionChecker() {...});
    1
    return concretePropertySelectFragment(alias, new InclusionChecker() {...});
    1
    return concretePropertySelectFragment(alias, new InclusionChecker() {...});
    Differences
    Expression1Expression2Difference
    inclusions[propertyNumber] != ValueInclusion.NONEincludeProperty[propertyNumber]TYPE_COMPATIBLE_REPLACEMENT
    1
    return concretePropertySelectFragment(alias, new InclusionChecker() {...});
    Precondition Violations (0)
    Row Violation