while ( iterator.hasNext() ) { final ExtendsQueueEntry entry = ( ExtendsQueueEntry ) iterator.next(); buf.append( entry.getExplicitName() ); if ( entry.getMappingPackage() != null ) { buf.append( "[" ).append( entry.getMappingPackage() ).append( "]" ); } if ( iterator.hasNext() ) { buf.append( "," ); } }
if ( isClosed() ) { log.trace( "skipping auto-flush due to session closed" ); return; } log.trace("automatically flushing session"); flush(); if ( childSessionsByEntityMode != null ) { Iterator iter = childSessionsByEntityMode.values().iterator(); while ( iter.hasNext() ) { ( (Session) iter.next() ).flush(); } }
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/cfg/Configuration.java File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/impl/SessionImpl.java
Method name: void processExtendsQueue() Method name: void managedFlush()
Number of AST nodes: 7 Number of AST nodes: 9
1
while ( iterator.hasNext() ) {
2
				final ExtendsQueueEntry entry = ( ExtendsQueueEntry ) iterator.next();
3
				buf.append( entry.getExplicitName() 
1
if ( isClosed() ) {
2
			log.trace( "skipping auto-flush due to session closed" );
3
			return;
4
		}
5
		log.trace("automatically flushing session");
4
);
6
		flush();
5
		
7
		
6
		if ( entry.getMappingPackage() != null ) {
8
		if ( 
7
					buf.append( "[" ).append( entry.getMappingPackage() ).append( "]" );
8
				}
9
				if
9
childSessionsByEntityMode != null ) {
10
			Iterator iter = childSessionsByEntityMode.values().iterator();
10
 ( iterator.hasNext() ) {
11
			while ( iter.hasNext() ) {
11
					buf.append( "," );
12
				( (Session) iter.next() ).flush();
12
				}
13
			}
13
			}
14
		}
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 comparisons2