public class Employee { private Long id; private Person person; private Date hireDate; private OptionalComponent optionalComponent; private Set directReports = new HashSet(); public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Person getPerson() { return person; } public void setPerson(Person person) { this.person = person; } public Date getHireDate() { return hireDate; } public void setHireDate(Date hireDate) { this.hireDate = hireDate; } public OptionalComponent getOptionalComponent() { return optionalComponent; } public void setOptionalComponent(OptionalComponent optionalComponent) { this.optionalComponent = optionalComponent; } public Set getDirectReports() { return directReports; } public void setDirectReports(Set directReports) { this.directReports = directReports;
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/component/basic/Employee.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 Employee {
1
public class Address {
2
	private Long id;
2
	private Long id;
3
	private Person person;
3
	private 
4
	private Date hireDate;
5
	private OptionalComponent optionalComponent;
6
	private Set directReports = new HashSet();
4
String address;
5
	private String zip;
6
	private String country;
7
	private Person person;
8
	/**
9
	 * @return Returns the id.
10
	 */
7
	public Long getId() {
11
	public Long getId() {
8
		return id;
12
		return id;
9
	}
13
	}
14
	/**
15
	 * @param id The id to set.
16
	 */
10
	public void setId(Long id) {
17
	public void setId(Long id) {
11
		this.id = id;
18
		this.id = id;
12
	}
19
	}
20
	/**
21
	 * @return Returns the person.
22
	 */
13
	public Person getPerson() {
23
	public Person getPerson() {
14
		return person;
24
		return person;
15
	}
25
	}
26
	/**
27
	 * @param person The person to set.
28
	 */
16
	public void setPerson(Person person) {
29
	public void setPerson(Person person) {
17
		this.person = person;
30
		this.person = person;
18
	}
31
	}
32
	/**
33
	 * @return Returns the address.
34
	 */
19
	public Date getHireDate() {
35
	public 
20
		return hireDate;
21
	}
22
	public void setHireDate(Date hireDate) {
23
		this.hireDate = hireDate;
24
	}
25
	public OptionalComponent getOptionalComponent() {
26
		return optionalComponent;
27
	}
28
	public void setOptionalComponent(OptionalComponent optionalComponent) {
29
		this.optionalComponent = optionalComponent;
30
	}
36
String getAddress() {
37
		return address;
38
	}
39
	/**
40
	 * @param address The address to set.
41
	 */
42
	public void setAddress(String address) {
43
		this.address = address;
44
	}
45
	/**
46
	 * @return Returns the country.
47
	 */
48
	public String getCountry() {
49
		return country;
50
	}
51
	/**
52
	 * @param country The country to set.
53
	 */
54
	public void setCountry(String country) {
55
		this.country = country;
56
	}
57
	/**
58
	 * @return Returns the zip.
59
	 */
31
	public Set getDirectReports() {
60
	public S
32
		return directReports;
33
	}
61
tring getZip() {
62
		return zip;
63
	}
64
	/**
65
	 * @param zip The zip to set.
66
	 */
34
	public void setDirectReports(Set directReports) {
67
	public void set
35
		this.directReports = directReports
68
Zip(String zip) {
36
;
69
		this.zip = zip;
37
	
70
	
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