public class Circular { private String id; private Class clazz; private Circular other; private Object anyEntity; /** * Constructor for Circular. */ public Circular() { super(); } /** * Returns the clazz. * @return Class */ public Class getClazz() { return clazz; } /** * Returns the id. * @return String */ public String getId() { return id; } /** * Sets the clazz. * @param clazz The clazz to set */ public void setClazz(Class clazz) { this.clazz = clazz; } /** * Sets the id. * @param id The id to set */ public void setId(String id) { this.id = id; } /** * Returns the other. * @return Circular */ public Circular getOther() { return other; } /** * Sets the other. * @param other The other to set */ public void setOther(Circular other) { this.other = other; } /** * Returns the anyEntity. * @return Object */ public Object getAnyEntity() { return anyEntity; } /** * Sets the anyEntity. * @param anyEntity The anyEntity to set */ public void setAnyEntity(Object anyEntity) { this.anyEntity = anyEntity;
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/Circular.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 Circular {
1
public class Customer implements Serializable {
2
	
3
	private String id;
2
	private String name;
4
	private Class clazz;
3
	private 
5
	private Circular other;
6
	private Object anyEntity;
7
	
8
	/**
9
	 * Constructor for Circular.
10
	 */
11
	public Circular() {
12
		super();
13
	}
14
	
15
	/**
16
	 * Returns the clazz.
17
	 * @return Class
18
	 */
4
String customerId;
5
	private Address billingAddress;
6
	private Address shippingAddress;
19
	public Class getClazz() {
7
	public Address get
20
		return clazz;
21
	}
22
	
23
	/**
24
	 * Returns the id.
25
	 * @return String
26
	 */
27
	public String getId() {
28
		return id;
29
	}
30
	
31
	/**
32
	 * Sets the clazz.
33
	 * @param clazz The clazz to set
34
	 */
35
	public void setClazz(Class clazz) {
36
		this.clazz = clazz;
37
	}
38
	
39
	/**
40
	 * Sets the id.
41
	 * @param id The id to set
42
	 */
8
BillingAddress() {
9
		return billingAddress;
10
	}
11
	public void setBillingAddress(Address billingAddress) {
12
		this.billingAddress = billingAddress;
13
	}
14
	public String getCustomerId() {
15
		return customerId;
16
	}
43
	public void setId(String id) {
17
	public void setCustomerId(String customerId) {
44
		this.id = id;
18
		this.
45
	}
46
	
47
	/**
48
	 * Returns the other.
49
	 * @return Circular
50
	 */
19
customerId = customerId;
20
	}
51
	public Circular getOther() {
21
	public String getName() {
52
		return other;
22
		return name;
53
	}
23
	}
54
	
24
	
55
	/**
56
	 * Sets the other.
57
	 * @param other The other to set
58
	 */
59
	public void setOther(Circular other) {
60
		this.other = other;
61
	}
62
	
63
	/**
64
	 * Returns the anyEntity.
65
	 * @return Object
66
	 */
67
	public Object getAnyEntity() {
68
		return anyEntity;
69
	}
70
	
71
	/**
72
	 * Sets the anyEntity.
73
	 * @param anyEntity The anyEntity to set
74
	 */
75
	public void setAnyEntity(Object anyEntity) {
76
		this.anyEntity = anyEntity
25
public void setName(String name) {
26
		this.name = name;
27
	}
28
	public Address getShippingAddress() {
29
		return shippingAddress;
30
	}
31
	public void setShippingAddress(Address shippingAddress) {
77
;
32
		this.shippingAddress = shippingAddress;
78
	
33
	
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