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 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/hql/Address.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 Address {
1
public class Address {
2
	private String street;
2
	private Long id;
3
	private String city;
3
	private String address;
4
	private String postalCode;
4
	private String zip;
5
	private String country;
5
	private String country;
6
	private StateProvince stateProvince;
6
	private 
7
Person person;
8
	/**
9
	 * @return Returns the id.
10
	 */
7
	public String getStreet() {
11
	public Long getId() {
8
		return street;
12
		return 
9
	}
10
	public void setStreet(String street
13
id;
14
	}
15
	/**
16
	 * @param id The id to set.
17
	 */
11
) {
18
	public void setId(Long id) {
12
		this.street = street;
19
		this.
13
	}
14
	public String getCity
20
id = id;
21
	}
22
	/**
23
	 * @return Returns the person.
24
	 */
15
() {
25
	public Person getPerson() {
16
		return city;
26
		return 
17
	}
18
	public void setCity(String city
27
person;
28
	}
29
	/**
30
	 * @param person The person to set.
31
	 */
19
) {
32
	public void setPerson(Person person) {
20
		this.city = city;
33
		this.
21
	}
34
person = person;
35
	}
36
	/**
37
	 * @return Returns the address.
38
	 */
22
	public String getPostalCode() {
39
	public String getAddress() {
23
		return postalCode;
40
		return 
24
	}
41
address;
42
	}
43
	/**
44
	 * @param address The address to set.
45
	 */
25
	public void setPostalCode(String postalCode) {
46
	public void setAddress(String address) {
26
		this.postalCode = postalCode;
47
		this.
27
	}
48
address = address;
49
	}
50
	/**
51
	 * @return Returns the country.
52
	 */
28
	public String getCountry() {
53
	public String getCountry() {
29
		return country;
54
		return country;
30
	}
55
	}
56
	/**
57
	 * @param country The country to set.
58
	 */
31
	public void setCountry(String country) {
59
	public void setCountry(String country) {
32
		this.country = country;
60
		this.country = country;
33
	}
61
	}
34
	public StateProvince getStateProvince
62
	/**
63
	 * @return Returns the zip.
64
	 */
35
() {
65
	public String getZip() {
36
		return stateProvince;
66
		return 
37
	}
38
	public void setStateProvince(StateProvince stateProvince
67
zip;
68
	}
69
	/**
70
	 * @param zip The zip to set.
71
	 */
39
) {
72
	public void setZip(String zip) {
40
		this.stateProvince = stateProvince;
73
		this.zip = zip;
41
	
74
	
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