if ( ce.isDorecreate() ) {
session.getInterceptor().onCollectionRecreate( coll, ce.getCurrentKey() );
actionQueue.addAction(
new CollectionRecreateAction(
coll,
ce.getCurrentPersister(),
ce.getCurrentKey(),
session
)
);
}
if ( persister.hasCache() ) {
final CacheKey ck = new CacheKey(
id,
persister.getIdentifierType(),
persister.getRootEntityName(),
source.getEntityMode(),
source.getFactory()
);
persister.getCacheAccessStrategy().evict( ck );
}
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/event/def/AbstractFlushingEventListener.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/event/def/DefaultRefreshEventListener.java
|
Method name: void flushCollections(EventSource)
|
|
Method name: void onRefresh(RefreshEvent, Map)
|
Number of AST nodes: 3
|
|
Number of AST nodes: 3
|
|
1 | if ( ce.isDorecreate() ) {↵ | | 1 | if ( ↵
|
2 | session.getInterceptor().onCollectionRecreate( coll, ce.getCurrentKey() );↵ | | |
|
3 | actionQueue.addAction(↵ | | |
|
4 | new CollectionRecreateAction( ↵ | | |
|
5 | coll, ↵ | | 2 | persister.hasCache() ) {↵
|
| | | 3 | final CacheKey ck = new CacheKey(↵
|
| | | 4 | id,↵
|
| | | 5 | persister.getIdentifierType(),↵
|
| | | 6 | persister.getRootEntityName(),↵
|
6 | ce.getCurrentPersister(), ↵ | | 7 | source.getEntityMode(), ↵
|
7 | ce.getCurrentKey(), ↵ | | 8 | source.getFactory()↵
|
8 | session ↵ | | 9 | ↵
|
9 | )↵ | | |
|
10 | ↵ | | 10 | );↵
|
11 | );↵ | | 11 | persister.getCacheAccessStrategy().evict( ck );↵
|
12 | } | | 12 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |