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 Site { private String name; private String description; private Set employees = new HashSet(); private Set managers = new HashSet(); Site() {} public Site(String name) { this.name=name; } public Set getManagers() { return managers; } public void setManagers(Set managers) { this.managers = managers; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public Set getEmployees() { return employees; } public void setEmployees(Set employees) { this.employees = employees; } public String getName() { return name; } public void setName(String name) { this.name = name
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/Site.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Person {
1
public class Site {
2
	private Long id;
2
	private String name;
3
	private String name;
3
	private String description;
4
	private Set addresses = new HashSet();
4
	private Set employees = new HashSet();
5
	private Collection friends = new ArrayList();
5
	private 
6
	public Person() {
7
	}
8

6
Set managers = new HashSet();
7
	Site() {}
9
	public Person(String name) {
8
	public Site(String name) {
10
		this.name = name;
9
		this.name=name;
11
	}
10
	}
12

13
	public Long getId() {
11
	public Set getManagers() {
14
		return id;
12
		return 
15
	}
16

13
managers;
14
	}
17
	public void setId(Long id) {
15
	public void setManagers(Set managers) {
18
		this.id = id;
16
		this.
19
	}
20

17
managers = managers;
18
	}
21
	public String getName() {
19
	public String getDescription() {
22
		return name;
20
		return 
23
	}
24

21
description;
22
	}
25
	public void setName(String name) {
23
	public void setDescription(String description) {
26
		this.name = name;
24
		this.
27
	}
28

25
description = description;
26
	}
29
	public Set getAddresses() {
27
	public Set getEmployees() {
30
		return addresses;
28
		return employees;
31
	}
29
	}
32

33
	public void setAddresses(Set addresses) {
30
	public void setEmployees(Set employees) {
34
		this.addresses = addresses;
31
		this.employees = employees;
35
	}
32
	}
36

37
	public Collection getFriends() {
33
	public String getName() {
38
		return friends;
34
		return 
39
	}
40

35
name;
36
	}
41
	public void setFriends(Collection friends) {
37
	public void setName(String name) {
42
		this.friends = friends
38
		this.name = name
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