public class Single implements Serializable { private String id; private String prop; private String string; private Collection several = new HashSet(); /** * Returns the id. * @return String */ public String getId() { return id; } /** * Returns the prop. * @return String */ public String getProp() { return prop; } /** * Returns the several. * @return Set */ public Collection getSeveral() { return several; } /** * Sets the id. * @param id The id to set */ public void setId(String id) { this.id = id; } /** * Sets the prop. * @param prop The prop to set */ public void setProp(String prop) { this.prop = prop; } /** * Sets the several. * @param several The several to set */ public void setSeveral(Collection several) { this.several = several; } /** * Returns the string. * @return String */ public String getString() { return string; } /** * Sets the string. * @param string The string to set */ public void setString(String string) { this.string = string;
public class Customer implements Serializable { private String name; private String customerId; private Address billingAddress; private Address shippingAddress; public Address getBillingAddress() { return billingAddress; } public void setBillingAddress(Address billingAddress) { this.billingAddress = billingAddress; } public String getCustomerId() { return customerId; } public void setCustomerId(String customerId) { this.customerId = customerId; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Address getShippingAddress() { return shippingAddress; } public void setShippingAddress(Address shippingAddress) { this.shippingAddress = shippingAddress;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/Single.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/typedmanytoone/Customer.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Single implements Serializable {
1
public class Customer implements Serializable {
2
	private String id;
2
	private String name;
3
	private String prop;
3
	private String customerId;
4
	private String string;
4
	private 
5
	private Collection several = new HashSet();
6
	/**
7
	 * Returns the id.
8
	 * @return String
9
	 */
10
	public String getId() {
11
		return id;
12
	}
13
	
14
	/**
15
	 * Returns the prop.
16
	 * @return String
17
	 */
18
	public String getProp() {
19
		return prop;
20
	}
21
	
22
	/**
23
	 * Returns the several.
24
	 * @return Set
25
	 */
26
	public Collection getSeveral() {
27
		return several;
28
	}
29
	
30
	/**
31
	 * Sets the id.
32
	 * @param id The id to set
33
	 */
5
Address billingAddress;
6
	private Address shippingAddress;
7
	public Address getBillingAddress() {
8
		return billingAddress;
9
	}
10
	public void setBillingAddress(Address billingAddress) {
11
		this.billingAddress = billingAddress;
12
	}
13
	public String getCustomerId() {
14
		return customerId;
15
	}
34
	public void setId(String id) {
16
	public void setCustomerId(String customerId) {
35
		this.id = id;
17
		this.
36
	}
37
	
38
	/**
39
	 * Sets the prop.
40
	 * @param prop The prop to set
41
	 */
42
	public void setProp(String prop) {
43
		this.prop = prop;
44
	}
45
	
46
	/**
47
	 * Sets the several.
48
	 * @param several The several to set
49
	 */
50
	public void setSeveral(Collection several) {
51
		this.several = several;
52
	}
53
	
54
	/**
55
	 * Returns the string.
56
	 * @return String
57
	 */
58
	public String getString() {
59
		return string;
60
	}
61
	
62
	/**
63
	 * Sets the string.
64
	 * @param string The string to set
65
	 */
66
	public void setString(String string) {
67
		this.string = string
18
customerId = customerId;
19
	}
20
	public String getName() {
21
		return name;
22
	}
23
	public void setName(String name) {
24
		this.name = name;
25
	}
26
	public Address getShippingAddress() {
27
		return shippingAddress;
28
	}
29
	public void setShippingAddress(Address shippingAddress) {
68
;
30
		this.shippingAddress = shippingAddress;
69
	
31
	
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