if ( persister.hasCache() ) { CacheKey ck = new CacheKey( key, persister.getKeyType(), persister.getRole(), session.getEntityMode(), session.getFactory() ); persister.getCacheAccessStrategy().remove( ck ); }
if ( ce.isDorecreate() ) { session.getInterceptor().onCollectionRecreate( coll, ce.getCurrentKey() ); actionQueue.addAction( new CollectionRecreateAction( coll, ce.getCurrentPersister(), ce.getCurrentKey(), session ) ); }
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/action/CollectionAction.java File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/event/def/AbstractFlushingEventListener.java
Method name: void evict() Method name: void flushCollections(EventSource)
Number of AST nodes: 3 Number of AST nodes: 3
1
if ( persister.hasCache() ) {
1
if ( 
2
			CacheKey ck = new CacheKey( 
3
					key, 
4
					persister.getKeyType(), 
5
					persister.getRole(), 
6
					session.getEntityMode
2
ce.isDorecreate() ) {
3
				session.getInterceptor().onCollectionRecreate( coll, ce.getCurrentKey() );
4
				actionQueue.addAction(
5
						new CollectionRecreateAction( 
6
								coll, 
7
								ce.getCurrentPersister(), 
7
(), 
8
								ce.getCurrentKey(), 
8
					session.getFactory() 
9
								session
9
				);
10
			persister.getCacheAccessStrategy().remove( ck 
10
 
11
							)
11
);
12
					);
12
		}
13
			}
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