public class Person { private Long id; private String name; private Set addresses = new HashSet(); private Collection friends = new ArrayList(); public Person() { } public Person(String name) { this.name = name; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Set getAddresses() { return addresses; } public void setAddresses(Set addresses) { this.addresses = addresses; } public Collection getFriends() { return friends; } public void setFriends(Collection friends) { this.friends = friends;
public class Employee { private String name; private Date hireDate; private Map managerBySite = new HashMap(); private Set underlings = new HashSet(); Employee() {} public Employee(String name) { this.name=name; } public Map getManagerBySite() { return managerBySite; } public void setManagerBySite(Map managerBySite) { this.managerBySite = managerBySite; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Set getUnderlings() { return underlings; } public void setUnderlings(Set underlings) { this.underlings = underlings; } public Date getHireDate() { return hireDate; } public void setHireDate(Date hireDate) { this.hireDate = hireDate;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/deletetransient/Person.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/ternary/Employee.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Person {
1
public class Employee {
2
	private Long id;
2
	private 
3
	private String nam
3
String name;
4
e;
4
	private Date hireDate;
5
	private Set addresses = new HashSet();
5
	private Map managerBySite = new HashMap();
6
	private Collection friends = new ArrayList();
6
	private 
7
	public Person() {
8
	}
9

7
Set underlings = new HashSet();
8
	
9
	Employee() {}
10
	public Person(String name) {
10
	public Employee(String name) {
11
		this.name = name;
11
		this.name=name;
12
	}
12
	}
13

14
	public Long getId() {
13
	public Map getManagerBySite() {
15
		return id;
14
		return 
16
	}
17
	public void setId(Long id
15
managerBySite;
16
	}
18
) {
17
	public void setManagerBySite(Map managerBySite) {
19
		this.id = id;
18
		this.
20
	}
21

19
managerBySite = managerBySite;
20
	}
22
	public String getName() {
21
	public String getName() {
23
		return name;
22
		return name;
24
	}
23
	}
25

26
	public void setName(String name) {
24
	public void setName(String name) {
27
		this.name = name;
25
		this.name = name;
28
	}
26
	}
29

30
	public Set getAddresses() {
27
	public Set getUnderlings() {
31
		return addresses;
28
		return underlings;
32
	}
29
	}
33

34
	public void setAddresses(Set addresses) {
30
	public void setUnderlings(Set underlings) {
35
		this.addresses = addresses;
31
		this.underlings = underlings;
36
	}
32
	}
37

38
	public Collection getFriends() {
33
	public Date getHireDate() {
39
		return friends;
34
		return 
40
	}
41

35
hireDate;
36
	}
42
	public void setFriends(Collection friends) {
37
	public void setHireDate(Date hireDate) {
43
		this.friends = friends;
38
		this.hireDate = hireDate;
44
	
39
	
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