public class User { private Long id; private String userName; private Human human; private List permissions; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getUserName() { return userName; } public void setUserName(String userName) { this.userName = userName; } public Human getHuman() { return human; } public void setHuman(Human human) { this.human = human; } public List getPermissions() { return permissions; } public void setPermissions(List permissions) { this.permissions = permissions
public class Person { private String name; private Date dob; private Employee employee; private Customer customer; public Customer getCustomer() { return customer; } public void setCustomer(Customer customer) { this.customer = customer; } public Employee getEmployee() { return employee; } public void setEmployee(Employee employee) { this.employee = employee; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Date getDob() { return dob; } public void setDob(Date dob) { this.dob = dob
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/hql/User.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/onetoone/link/Person.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class User {
1
public class Person {
2
	private Long id;
2
	private 
3
	private String userName;
4
	private Human human;
5
	private List permissions;
6
	public Long getId
3
String name;
4
	private Date dob;
5
	private Employee employee;
6
	private Customer customer;
7
() {
7
	public Customer getCustomer() {
8
		return id;
8
		return customer;
9
	}
9
	}
10
	public void setId(Long id) {
10
	public void set
11
		this.id = id
11
Customer(Customer customer) {
12
;
12
		this.customer = customer;
13
	}
13
	}
14
	public String getUserName() {
14
	public Employee getEmployee() {
15
		return userName;
15
		return employee;
16
	}
16
	}
17
	public void setUserName(String userName) {
17
	public void setEmployee(Employee employee) {
18
		this.userName = userName;
18
		this.employee = employee;
19
	}
19
	}
20
	public Human getHuman() {
20
	public String getName() {
21
		return human;
21
		return name;
22
	}
22
	}
23
	public void setHuman(Human human) {
23
	public void set
24
		this.human = human
24
Name(String name) {
25
;
25
		this.name = name;
26
	}
26
	}
27
	public List getPermissions() {
27
	public Date getDob() {
28
		return permissions;
28
		return dob;
29
	}
29
	}
30
	
30
	
31
	public void setPermissions(List permissions) {
31
public void set
32
		this.permissions = permissions
32
Dob(Date dob) {
33
		this.dob = dob
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