try { userType = (CompositeUserType) userTypeClass.newInstance(); } catch (InstantiationException ie) { throw new MappingException( "Cannot instantiate custom type: " + userTypeClass.getName() ); } catch (IllegalAccessException iae) { throw new MappingException( "IllegalAccessException trying to instantiate custom type: " + userTypeClass.getName()
try { userType = ( UserType ) userTypeClass.newInstance(); } catch ( InstantiationException ie ) { throw new MappingException( "Cannot instantiate custom type: " + userTypeClass.getName() ); } catch ( IllegalAccessException iae ) { throw new MappingException( "IllegalAccessException trying to instantiate custom type: " + userTypeClass.getName()
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/type/CompositeCustomType.java File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/type/CustomType.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
try {
1
try {
2
			userType = (CompositeUserType) userTypeClass.newInstance();
2
			userType = ( UserType ) userTypeClass.newInstance();
3
		}
3
		}
4
		catch (InstantiationException ie) {
4
		catch ( InstantiationException ie ) {
5
			throw new MappingException( 
5
			throw new MappingException(
6
					"Cannot instantiate custom type: " + 
6
					"Cannot instantiate custom type: " +
7
					userTypeClass.getName() 
7
					userTypeClass.getName()
8
				);
8
				);
9
		}
9
		}
10
		catch (IllegalAccessException iae) {
10
		catch ( IllegalAccessException iae ) {
11
			throw new MappingException( 
11
			throw new MappingException(
12
					"IllegalAccessException trying to instantiate custom type: " + 
12
					"IllegalAccessException trying to instantiate custom type: " +
13
					userTypeClass.getName() 
13
					userTypeClass.getName()
14
				
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 location
Number of node comparisons0