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;
public class Address { 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;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/C1.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/propertyref/basic/Address.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class C1 extends B{
1
public class Address {
2
	private String address;
2
	private Long id;
3
	private String c1Name;
3
	private String address;
4
	private C2 c2;
4
	private 
5
	private D d;
6
	private Collection c2s = new ArrayList();
5
String zip;
6
	private String country;
7
	private Person person;
7
	/**
8
	/**
8
	 * Returns the address.
9
	 * @return Returns the 
9
	 * @return String
10
id.
10
	 */
11
	 */
11
	public String getAddress() {
12
	public Long getId() {
12
		return address;
13
		return id;
13
	}
14
	}
14
	
15

15
	/**
16
	/**
16
	 * Sets the address.
17

17
	 * @param address The address to set
18
	 * @param id The id to set.
18
	 */
19
	 */
19
	public void setAddress(String address) {
20
	public void setId(Long id) {
20
		this.address = address;
21
		this.id = id;
21
	}
22
	}
22
	
23

23
	/**
24
	/**
24
	 * Returns the d.
25
	 * @return Returns the 
25
	 * @return D
26
person.
26
	 */
27
	 */
27
	public D getD() {
28
	public Person getPerson() {
28
		return d;
29
		return person;
29
	}
30
	}
30
	
31

31
	/**
32
	/**
32
	 * Sets the d.
33
	 * @param d The d
34
 to set
33
	 * @param person The person to set.
35
	 */
34
	 */
36
	public void setD(D d) {
35
	public void setPerson(Person person) {
37
		this.d = d;
36
		this.person = person;
38
	}
37
	}
39
	
38

40
	/**
39
	/**
41
	 * @return Returns the c.
40
	 * @return Returns the address.
42
	 */
41
	 */
43
	public C2 getC2() {
42
	public String getAddress() {
44
		return c2;
43
		return address;
45
	}
44
	}
45

46
	/**
46
	/**
47
	 * @param c The c to set.
47
	 * @param address The address to set.
48
	 */
48
	 */
49
	public void setC2(C2 c) {
49
	public void setAddress(String address) {
50
		this.c2 = c;
50
		this.address = address;
51
	}
51
	}
52

52
	/**
53
	/**
53
	 * @return Returns the cs.
54
	 * @return Returns the country.
54
	 */
55
	 */
55
	public Collection getC2s() {
56
	public String getCountry() {
56
		return c2s;
57
		return country;
57
	}
58
	}
59

58
	/**
60
	/**
59
	 * @param cs The cs to set.
61
	 * @param country The country to set.
60
	 */
62
	 */
61
	public void setC2s(Collection cs) {
63
	public void setCountry(String country) {
62
		this.c2s = cs;
64
		this.country = country;
63
	}
65
	}
66

64
	/**
67
	/**
65
	 * @return Returns the c1Name.
68
	 * @return Returns the zip.
66
	 */
69
	 */
67
	public String getC1Name() {
70
	public String getZip() {
68
		return c1Name;
71
		return zip;
69
	}
72
	}
70
	/**
73
	/**
71
	 * @param name The c1Name to set.
74
	 * @param zip The zip to set.
72
	 */
75
	 */
73
	public void setC1Name(String name) {
76
	public void setZip(String zip) {
74
		c1Name = name;
77
		this.zip = zip;
75
	
78
	
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