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