if ( log.isDebugEnabled() ) { log.debug( "createManyToMany() : path = " + path + " role = " + role + " associatedEntityName = " + associatedEntityName ); } elem = createManyToMany( role, associatedEntityName, roleAlias, entityPersister, ( EntityType ) queryableCollection.getElementType(), joinType ); fromClause.getWalker().addQuerySpaces( queryableCollection.getCollectionSpaces() );
if ( currentQueryCache == null ) { currentQueryCache = settings.getQueryCacheFactory().getQueryCache( regionName, updateTimestampsCache, settings, properties ); queryCaches.put( regionName, currentQueryCache ); allCacheRegions.put( currentQueryCache.getRegion().getName(), currentQueryCache.getRegion() ); }
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/hql/ast/tree/FromElementFactory.java File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/impl/SessionFactoryImpl.java
Method name: FromElement createEntityAssociation(String, String, int) Method name: QueryCache getQueryCache(String)
Number of AST nodes: 4 Number of AST nodes: 4
1
if ( log.isDebugEnabled() ) {
1
if ( 
2
				log.debug( "createManyToMany() : path = " + path + " role = " + role + " associatedEntityName = " + associatedEntityName );
3
			}
4
			elem = createManyToMany( role, associatedEntityName,
5
					roleAlias, entityPersister, ( EntityType ) queryableCollect
2
currentQueryCache == null ) {
3
				currentQueryCache = settings.getQueryCacheFactory().getQueryCache( regionName, updateTimestampsCache, settings, properties );
4
				queryCaches.put( regionName, currentQueryCache );
6
ion.getElementType(), joinType );
5
				allCacheRegions.put( currentQueryCache.getRegion().get
7
			fromClause.getWalker().addQuerySpaces( queryableCollection.getCollectionSpaces() );
6
Name(), currentQueryCache.getRegion() );
7
			}
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.1
Clones locationClones are in different classes
Number of node comparisons1