public class Address implements Serializable { private Long id; private String address; private String zip; private String country; private Person person; /** * @return Returns the id. */ public Long getId() { return id; } /** * @param id The id to set. */ public void setId(Long id) { this.id = id; } /** * @return Returns the person. */ public Person getPerson() { return person; } /** * @param person The person to set. */ public void setPerson(Person person) { this.person = person; } /** * @return Returns the address. */ public String getAddress() { return address; } /** * @param address The address to set. */ public void setAddress(String address) { this.address = address; } /** * @return Returns the country. */ public String getCountry() { return country; } /** * @param country The country to set. */ public void setCountry(String country) { this.country = country; } /** * @return Returns the zip. */ public String getZip() { return zip; } /** * @param zip The zip to set. */ public void setZip(String zip) { this.zip = zip
public class C1 extends B{ private String address; private String c1Name; private C2 c2; private D d; private Collection c2s = new ArrayList(); /** * Returns the address. * @return String */ public String getAddress() { return address; } /** * Sets the address. * @param address The address to set */ public void setAddress(String address) { this.address = address; } /** * Returns the d. * @return D */ public D getD() { return d; } /** * Sets the d. * @param d The d to set */ public void setD(D d) { this.d = d; } /** * @return Returns the c. */ public C2 getC2() { return c2; } /** * @param c The c to set. */ public void setC2(C2 c) { this.c2 = c; } /** * @return Returns the cs. */ public Collection getC2s() { return c2s; } /** * @param cs The cs to set. */ public void setC2s(Collection cs) { this.c2s = cs; } /** * @return Returns the c1Name. */ public String getC1Name() { return c1Name; } /** * @param name The c1Name to set. */ public void setC1Name(String name) { c1Name = name
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/cuk/Address.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/C1.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Address implements Serializable {
1
public class C1 extends B{
2
	private Long id;
2
	private String address;
3
	private String address;
3
	private String c1Name;
4
	private String zip;
4
	private C2 c2;
5
	private String country;
5
	private 
6
	private Person person
6
D d;
7
;
7
	private Collection c2s = new ArrayList();
8
	/**
8
	/**
9
	 * @return Returns the id.
9
	 * Returns the address.
10
	 * @return String
10
	 */
11
	 */
11
	public Long getId() {
12
	public String getAddress() {
12
		return id;
13
		return address;
13
	}
14
	}
14
	
15
	
15
/**
16
	/**
16
	 * @param id The id
17
	 * Sets the address.
17
 to set.
18
	 * @param address The address to set
18
	 */
19
	 */
19
	public void setId(Long id) {
20
	public void setAddress(String address) {
20
		this.id = id;
21
		this.address = address;
21
	}
22
	}
22
	
23
	
23
/**
24
	/**
24
	 * @return Returns the person.
25
	 * Returns the 
25
	 */
26
	public Person getPerson
26
d.
27
	 * @return D
28
	 */
27
() {
29
	public D getD() {
28
		return person;
30
		return d;
29
	}
31
	}
30
	
32
	
31
/**
33
	/**
32
	 * @param person The person
34
	 * Sets the d.
33
 to set.
35
	 * @param d The d to set
34
	 */
36
	 */
35
	public void setPerson(Person person) {
37
	public void set
36
		this.person = person
38
D(D d) {
37
;
39
		this.d = d;
38
	}
40
	}
39
	
41
	
40
/**
42
	/**
41
	 * @return Returns the address.
43
	 * @return Returns the c.
42
	 */
44
	 */
43
	public String getAddress() {
45
	public C2 getC2() {
44
		return address;
46
		return c2;
45
	}
47
	}
46
	/**
48
	/**
47
	 * @param address The address to set.
49
	 * @param c The c to set.
48
	 */
50
	 */
49
	public void setAddress(String address) {
51
	public void set
50
		this.address = address
52
C2(C2 c) {
51
;
53
		this.c2 = c;
52
	}
54
	}
53
	/**
55
	/**
54
	 * @return Returns the country.
56
	 * @return Returns the cs.
55
	 */
57
	 */
56
	public String getCountry() {
58
	public Collection getC2s() {
57
		return country;
59
		return c2s;
58
	}
60
	}
59
	/**
61
	/**
60
	 * @param country The country to set.
62
	 * @param cs The cs to set.
61
	 */
63
	 */
62
	public void setCountry(String country) {
64
	public void setC
63
		this.country = country
65
2s(Collection cs) {
64
;
66
		this.c2s = cs;
65
	}
67
	}
66
	/**
68
	/**
67
	 * @return Returns the zip.
69
	 * @return Returns the c1Name.
68
	 */
70
	 */
69
	public String getZip() {
71
	public String getC1Name() {
70
		return zip;
72
		return c1Name;
71
	}
73
	}
72
	/**
74
	/**
73
	 * @param zip The zip to set.
75
	 * @param name The c1Name to set.
74
	 */
76
	 */
75
	public void setZip(String zip) {
77
	public void setC1Name(String name) {
76
		this.zip = zip
78
		c1Name = name
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