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;
public class Event { private Long id; private String title; private Date date; public Event() {} public Long getId() { return id; } private void setId(Long id) { this.id = id; } public Date getDate() { return date; } public void setDate(Date date) { this.date = date; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } private Set participants = new HashSet(); public Set getParticipants() { return participants; } public void setParticipants(Set participants) { this.participants = participants;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/onetoone/link/Person.java File path: /hibernate-distribution-3.3.2.GA/project/tutorials/web/src/main/java/org/hibernate/tutorial/domain/Event.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Person {
1
public class 
2
	
2
Event {
3
    private Long id;
3
private String name;
4
    private String 
4
	
5
title;
5
private Date dob;
6
    private Date d
6
	private Employee employee;
7
	private Customer customer;
8
	public Customer getCustomer() {
9
		return customer;
10
	}
11
	public void setCustomer(Customer customer) {
12
		this.customer = customer;
13
	}
14
	public Employee getEmployee() {
15
		return employee;
16
	}
17
	public void setEmployee(Employee employee) {
18
		this.employee = employee;
19
	}
20
	
7
ate;
8
    public Event() {}
9
    public Long getId() {
10
        return id;
11
    }
12
    private void setId(Long id) {
13
        this.id = id;
14
    }
15
    public Date getDate() {
16
        return date;
17
    }
18
    public void setDate(Date date) {
19
        this.date = date;
20
    }
21
public String getName() {
21
    public String getTitle() {
22
		return name;
23
	}
24
	
22
        return title;
23
    }
25
public void setName(String name) {
24
    public void setTitle(String title) {
26
		this.name = name;
27
	}
28
	public Date getDob() {
29
		return dob;
30
	}
31
	public void setDob(Date dob) {
32
		this.dob = dob;
33
	
25
        this.title = title;
26
    }
27
    
28
    private Set participants = new HashSet();
29
    public Set getParticipants() {
30
        return participants;
31
    }
32
    public void setParticipants(Set participants) {
33
        this.participants = participants;
34
    
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