public class Address { private String street; private String city; private String postalCode; private String country; private StateProvince stateProvince; public String getStreet() { return street; } public void setStreet(String street) { this.street = street; } public String getCity() { return city; } public void setCity(String city) { this.city = city; } public String getPostalCode() { return postalCode; } public void setPostalCode(String postalCode) { this.postalCode = postalCode; } public String getCountry() { return country; } public void setCountry(String country) { this.country = country; } public StateProvince getStateProvince() { return stateProvince; } public void setStateProvince(StateProvince stateProvince) { this.stateProvince = stateProvince;
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/hql/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 {
1
public class C1 extends B{
2
	private String street;
2
	private String address;
3
	private String city;
3
	private String c
4
	private String postalCode;
5
	private String country;
6
	private StateProvince stateProvince;
4
1Name;
5
	private C2 c2;
6
	private D d;
7
	private Collection c2s = new ArrayList();
8
	/**
9
	 * Returns the address.
10
	 * @return String
11
	 */
7
	public String getStreet() {
12
	public String getAddress() {
8
		return street;
13
		return 
9
	}
14
address;
15
	}
16
	
17
	/**
18
	 * Sets the address.
19
	 * @param address The address to set
20
	 */
10
	public void setStreet(String street) {
21
	public void setAddress(String address) {
11
		this.street = street;
22
		this.
12
	}
13
	public String getCity
23
address = address;
24
	}
25
	
26
	/**
27
	 * Returns the d.
28
	 * @return D
29
	 */
14
() {
30
	public D getD() {
15
		return city;
31
		return d;
16
	}
32
	}
33
	
34
	/**
35
	 * Sets the d.
36
	 * @param d The d to set
37
	 */
17
	public void setCity(String city) {
38
	public void set
18
		this.city = city;
19
	}
20
	public String getPostalCode() {
21
		return postalCode;
22
	}
23
	public void setPostalCode(String postalCode) {
24
		this.postalCode = postalCode;
25
	}
26
	public String getCountry
39
D(D d) {
40
		this.d = d;
41
	}
42
	
43
	/**
44
	 * @return Returns the c.
45
	 */
46
	public C2 getC2() {
47
		return c2;
48
	}
49
	/**
50
	 * @param c The c to set.
51
	 */
52
	public void setC2(C2 c) {
53
		this.c2 = c;
54
	}
55
	/**
56
	 * @return Returns the cs.
57
	 */
27
() {
58
	public Collection getC2s() {
28
		return country;
59
		return c2s;
29
	}
60
	}
30
	public void setCountry(String country) {
61
	
31
		this.country = country;
32
	}
33
	public StateProvince getStateProvince() {
34
		return stateProvince;
35
	}
36
	public void setStateProvince(StateProvince stateProvince) {
37
		this.stateProvince = stateProvinc
62
/**
63
	 * @param cs The cs to set.
64
	 */
65
	public void setC2s(Collection cs) {
66
		this.c2s = cs;
67
	}
68
	/**
69
	 * @return Returns the c1Name.
70
	 */
71
	public String getC1Name() {
72
		return c1Name;
73
	}
74
	/**
75
	 * @param name The c1Name to set.
76
	 */
77
	public void setC1Name(String name) {
38
e;
78
		c1Name = name;
39
	
79
	
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