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 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/hql/User.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 User {
1
public class 
2
	
2
Event {
3
private Long id;
3
    private Long id;
4
	
5
private String userName;
4
    private String 
6
	private Human human;
7
	private List permissions;
8
	
5
title;
6
    private Date date;
7
    public Event() {}
9
public Long getId() {
8
    public Long getId() {
10
		return id;
9
        return id;
11
	}
12
	public
10
    }
13
 void setId(Long id) {
11
    private void setId(Long id) {
14
		this.id = id;
12
        this.id = id;
15
	}
16
	public String getUserName() {
17
		return userName;
18
	}
19
	public void setUserName(String userName) {
20
		this.userName = userName;
21
	}
22
	public Human getHuman() {
23
		return human;
24
	}
25
	public void setHuman(Human human) {
26
		this.human = human;
27
	}
28
	
13
    }
14
    public Date getDate() {
15
        return date;
16
    }
17
    public void setDate(Date date) {
18
        this.date = date;
19
    }
20
    public String getTitle() {
21
        return title;
22
    }
23
    public void setTitle(String title) {
24
        this.title = title;
25
    }
26
    
27
    private Set participants = new HashSet();
29
public List getPermissions() {
28
    public Set getP
30
		return permissions;
31
	}
32
	
33
	
29
articipants() {
30
        return participants;
31
    }
34
public void setPermissions(List permissions) {
32
    public void setP
35
		this.permissions = permissions;
36
	
33
articipants(Set participants) {
34
        this.participants = participants;
35
    
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