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 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/component/basic/Employee.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 Employee {
1
public class Address {
2
	private Long id;
2
	private 
3
	private Person person;
4
	private Date hireDat
3
String street;
4
	private String city;
5
e;
5
	private String postalCode;
6
	private OptionalComponent optionalComponent;
6
	private 
7
	private Set directReports = new HashSet();
8

7
String country;
8
	private StateProvince stateProvince;
9
	public Long getId() {
9
	public String getStreet() {
10
		return id;
10
		return 
11
	}
12

11
street;
12
	}
13
	public void setId(Long id) {
13
	public void setStreet(String street) {
14
		this.id = id;
14
		this.
15
	}
16
	public Person getPerson
15
street = street;
16
	}
17
() {
17
	public String getCity() {
18
		return person;
18
		return 
19
	}
20

19
city;
20
	}
21
	public void setPerson(Person person) {
21
	public void setCity(String city) {
22
		this.person = person;
22
		this.
23
	}
24
	public Date getHireDat
23
city = city;
24
	}
25
e() {
25
	public String getPostalCode() {
26
		return hireDate;
26
		return postalCode;
27
	}
27
	}
28

29
	public void setHireDate(Date hireDate) {
28
	public void setPostalCode(String postalCode) {
30
		this.hireDate = hireDate;
29
		this.postalCode = postalCode;
31
	}
30
	}
32

33
	public OptionalComponent getOptionalComponent() {
31
	public String getCountry() {
34
		return optionalComponent;
32
		return 
35
	}
36
	public void setOptionalComponent(OptionalComponent optionalComponent
33
country;
34
	}
37
) {
35
	public void setCountry(String country) {
38
		this.optionalComponent = optionalComponent;
36
		this.
39
	}
40
	public Set getDirectReports
37
country = country;
38
	}
41
() {
39
	public StateProvince getStateProvince() {
42
		return directReports;
40
		return 
43
	}
44

41
stateProvince;
42
	}
45
	public void setDirectReports(Set directReports) {
43
	public void setStateProvince(StateProvince stateProvince) {
46
		this.directReports = directReports
44
		this.stateProvince = stateProvince
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