Type type = persister.getSubclassPropertyType(i); if ( type.isAssociationType() ) { walkEntityAssociationTree( (AssociationType) type, persister, i, alias, path, persister.isSubclassPropertyNullable(i), currentDepth );
if ( type.isComponentType() ) { AbstractComponentType actype = (AbstractComponentType) type; initComponentPropertyPaths( path, actype, columns, formulaTemplates, factory ); if ( actype.isEmbedded() ) { initComponentPropertyPaths( path==null ? null : StringHelper.qualifier(path), actype, columns, formulaTemplates, factory ); } } else if ( type.isEntityType() ) { initIdentifierPropertyPaths( path, (EntityType) type, columns, factory ); }
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/loader/JoinWalker.java File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/persister/entity/AbstractPropertyMapping.java
Method name: void walkEntityTree(OuterJoinLoadable, String, String, int) Method name: void initPropertyPaths(String, Type, String[], String[], Mapping)
Number of AST nodes: 2 Number of AST nodes: 7
1
Type type = persister.getSubclassPropertyType(i
1
if ( type.isComponentType() ) {
2
			AbstractComponentType actype = (AbstractComponentType) type;
2
);
3
			initComponentPropertyPaths( path, actype, columns, formulaTemplates, factory );
3
			if ( type.isAssociationType() ) {
4
			if ( actype.is
4
				walkEntityAssociationTree(
5
					(AssociationType) type,
6
					persister,
7
					i,
8
					alias,
9
					path,
10
					persister.isSubclassPropertyNullable(i),
11
					currentDepth
12
				);
5
Embedded() ) {
6
				initComponentPropertyPaths(
7
						path==null ? null : StringHelper.qualifier(path),
8
						actype,
9
						columns,
10
						formulaTemplates,
11
						factory
12
					);
13
			}
14
		}
15
		else if ( type.isEntityType() ) {
16
			initIdentifierPropertyPaths( path, (EntityType) type, columns, factory );
17
		}
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 in different classes
Number of node comparisons0