if ( ce.isDorecreate() ) {
session.getInterceptor().onCollectionRecreate( coll, ce.getCurrentKey() );
actionQueue.addAction(
new CollectionRecreateAction(
coll,
ce.getCurrentPersister(),
ce.getCurrentKey(),
session
)
);
}
if ( log.isDebugEnabled() ) {
log.debug(
"result set contains (possibly empty) collection: " +
MessageHelper.collectionInfoString( persister, optionalKey, getFactory() )
);
}
persistenceContext.getLoadContexts()
.getCollectionLoadContext( rs )
.getLoadingCollection( persister, optionalKey );
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/loader/Loader.java
|
Method name: void flushCollections(EventSource)
|
|
Method name: void readCollectionElement(Object, Serializable, CollectionPersister, CollectionAliases, ResultSet, SessionImplementor)
|
Number of AST nodes: 3
|
|
Number of AST nodes: 3
|
|
1 | if ( ce.isDorecreate() ) {↵ | | 1 | if ( log.isD↵
|
2 | session.getInterceptor().onCollectionRecreate( coll, ce.getCurrentKey() );↵ | | |
|
3 | actionQueue.addAction(↵ | | |
|
4 | new CollectionRecreateAction( ↵ | | |
|
5 | coll, ↵ | | |
|
6 | ce.getCurrentPersister(), ↵ | | 2 | ebugEnabled() ) {↵
|
| | | 3 | log.debug( ↵
|
| | | 4 | "result set contains (possibly empty) collection: " +↵
|
| | | 5 | MessageHelper.collectionInfoString( persister, optionalKey, getFactory() ) ↵
|
| | | 6 | );↵
|
| | | 7 | }↵
|
|
| | | 8 | persistenceContext.getLoadContexts()↵
|
7 | ce.getCurrentKey(), ↵ | | 9 | ↵
|
8 | session ↵ | | |
|
9 | )↵ | | |
|
10 | );↵ | | |
|
11 | } | | 10 | .getCollectionLoadContext( rs )↵
|
| | | 11 | .getLoadingCollection( persister, optionalKey );
|
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 |