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 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
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/cuk/Address.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Employee {
1
public class Address implements Serializable {
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();
7

4
String address;
5
	private String zip;
6
	private String country;
7
	private Person person;
8
	/**
9
	 * @return Returns the id.
10
	 */
8
	public Long getId() {
11
	public Long getId() {
9
		return id;
12
		return id;
10
	}
13
	}
11

14
	/**
15
	 * @param id The id to set.
16
	 */
12
	public void setId(Long id) {
17
	public void setId(Long id) {
13
		this.id = id;
18
		this.id = id;
14
	}
19
	}
15

20
	/**
21
	 * @return Returns the person.
22
	 */
16
	public Person getPerson() {
23
	public Person getPerson() {
17
		return person;
24
		return person;
18
	}
25
	}
19

26
	/**
27
	 * @param person The person to set.
28
	 */
20
	public void setPerson(Person person) {
29
	public void setPerson(Person person) {
21
		this.person = person;
30
		this.person = person;
22
	}
31
	}
23

32
	/**
33
	 * @return Returns the address.
34
	 */
24
	public Date getHireDate() {
35
	public String getAddress() {
25
		return hireDate;
36
		return 
26
	}
27
	public void setHireDate(Date hireDate
37
address;
38
	}
39
	/**
40
	 * @param address The address to set.
41
	 */
28
) {
42
	public void setAddress(String address) {
29
		this.hireDate = hireDate;
43
		this.
30
	}
31
	public OptionalComponent getOptionalComponent
44
address = address;
45
	}
46
	/**
47
	 * @return Returns the country.
48
	 */
32
() {
49
	public String getCountry() {
33
		return optionalComponent;
50
		return 
34
	}
35
	public void setOptionalComponent(OptionalComponent optionalComponent
51
country;
52
	}
53
	/**
54
	 * @param country The country to set.
55
	 */
36
) {
56
	public void setCountry(String country) {
37
		this.optionalComponent = optionalComponent;
57
		this.
38
	}
39

58
country = country;
59
	}
60
	/**
61
	 * @return Returns the zip.
62
	 */
40
	public Set getDirectReports() {
63
	public String getZip() {
41
		return directReports;
64
		return 
42
	}
43

65
zip;
66
	}
67
	/**
68
	 * @param zip The zip to set.
69
	 */
44
	public void setDirectReports(Set directReports) {
70
	public void setZip(String zip) {
45
		this.directReports = directReports
71
		this.zip = zip
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