try { doQueryAndInitializeNonLazyCollections( session, new QueryParameters( new Type[]{type}, ids, ids ), true ); } catch ( SQLException sqle ) { throw JDBCExceptionHelper.convert( factory.getSQLExceptionConverter(), sqle, "could not initialize a collection: " + MessageHelper.collectionInfoString( getCollectionPersisters()[0], id, getFactory() ), getSQLString() ); }
try { doQueryAndInitializeNonLazyCollections( session, new QueryParameters( idTypes, ids, ids ), true ); } catch ( SQLException sqle ) { throw JDBCExceptionHelper.convert( factory.getSQLExceptionConverter(), sqle, "could not initialize a collection batch: " + MessageHelper.collectionInfoString( getCollectionPersisters()[0], ids, getFactory() ), getSQLString() ); }
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/loader/Loader.java File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/loader/Loader.java
Method name: void loadCollection(SessionImplementor, Serializable, Type) Method name: void loadCollectionBatch(SessionImplementor, Serializable[], Type)
Number of AST nodes: 2 Number of AST nodes: 2
1
try {
1
try {
2
			doQueryAndInitializeNonLazyCollections( 
2
			doQueryAndInitializeNonLazyCollections( 
3
					session,
3
					session,
4
					new QueryParameters( new Type[]{type}, ids, ids ),
4
					new QueryParameters( idTypes, ids, ids ),
5
					true 
5
					true 
6
				);
6
				);
7
		}
7
		}
8
		catch ( SQLException sqle ) {
8
		catch ( SQLException sqle ) {
9
			throw JDBCExceptionHelper.convert(
9
			throw JDBCExceptionHelper.convert(
10
					factory.getSQLExceptionConverter(),
10
			        factory.getSQLExceptionConverter(),
11
					sqle,
11
			        sqle,
12
					"could not initialize a collection: " + 
12
			        "could not initialize a collection batch: " + 
13
					MessageHelper.collectionInfoString( getCollectionPersisters()[0], id, getFactory() ),
13
			        MessageHelper.collectionInfoString( getCollectionPersisters()[0], ids, getFactory() ),
14
					getSQLString()
14
			        getSQLString()
15
				);
15
				);
16
		}
16
		}
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.5
Clones locationClones are declared in the same class
Number of node comparisons1