private static Setter createSetter(Class theClass, String propertyName) throws PropertyNotFoundException { BasicSetter result = getSetterOrNull(theClass, propertyName); if (result==null) { throw new PropertyNotFoundException( "Could not find a setter for property " + propertyName + " in class " + theClass.getName() ); } return result;
public static Getter createGetter(Class theClass, String propertyName) throws PropertyNotFoundException { BasicGetter result = getGetterOrNull(theClass, propertyName); if (result==null) { throw new PropertyNotFoundException( "Could not find a getter for " + propertyName + " in class " + theClass.getName() ); } return result;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/property/BasicPropertyAccessor.java File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/property/BasicPropertyAccessor.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
private static Setter createSetter(Class theClass, String propertyName) 
1
public static Getter createGetter(Class theClass, String propertyName) 
2
	throws PropertyNotFoundException {
2
	throws PropertyNotFoundException {
3
		BasicSetter result = getSetterOrNull(theClass, propertyName);
3
		BasicGetter result = getGetterOrNull(theClass, propertyName);
4
		if (result==null) {
4
		if (result==null) {
5
			throw new PropertyNotFoundException( 
5
			throw new PropertyNotFoundException( 
6
					"Could not find a setter for property " + 
6
					"Could not find a getter for " + 
7
					propertyName + 
7
					propertyName + 
8
					" in class " + 
8
					" in class " + 
9
					theClass.getName() 
9
					theClass.getName() 
10
				);
10
			);
11
		}
11
		}
12
		return result;
12
		return result;
13
	
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