public class Employee extends Person { private String title; private String department; private Employee manager; private Set minions = new HashSet(); public Employee() { } public Employee(String name) { super( name ); } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public String getDepartment() { return department; } public void setDepartment(String department) { this.department = department; } public Employee getManager() { return manager; } public void setManager(Employee manager) { this.manager = manager; } public Set getMinions() { return minions; } public void setMinions(Set minions) { this.minions = minions
public class Group { private Long id; private Date timestamp; private String name; private Set users; public Group() { } public Group(String name) { this.name = name; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Date getTimestamp() { return timestamp; } public void setTimestamp(Date timestamp) { this.timestamp = timestamp; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Set getUsers() { return users; } public void setUsers(Set users) { this.users = users
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/subclassfilter/Employee.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/version/sybase/Group.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Employee extends Person {
1
public class 
2
    
2
Group {
3
private String title;
3
	private 
4
	private String department;
5
	private Employee manager;
6
	private Set minions = new HashSet()
4
Long id;
5
	private Date timestamp;
6
	private String name;
7
;
7
	private Set users;
8
	public Employee() {
8
	public Group() {
9
	}
9
	}
10
	public Employee(String name) {
10
	public Group(String name) {
11
		super( name );
11
		this.name = name;
12
	}
12
	}
13
	public String getTitle() {
13
	public Long getId() {
14
		return title;
14
		return id;
15
	}
15
	}
16
	public void setTitle(String title) {
16
	public void setId(Long id) {
17
		this.title = title;
17
		this.id = id;
18
	}
18
	}
19
	public String getDepartment() {
19
	public Date getTimestamp() {
20
		return department;
20
		return timestamp;
21
	}
21
	}
22
	public void setDepartment(String department) {
22
	public void setTimestamp(Date timestamp) {
23
		this.department = department;
23
		this.timestamp = timestamp;
24
	}
24
	}
25
	public Employee getManager() {
25
	public String getName() {
26
		return manager;
26
		return name;
27
	}
27
	}
28
	public void setManager(Employee manager) {
28
	public void setName(String name) {
29
		this.manager = manager;
29
		this.name = name;
30
	}
30
	}
31
	public Set getMinions() {
31
	public Set getUsers() {
32
		return minions;
32
		return users;
33
	}
33
	}
34
	public void setMinions(Set minions) {
34
	public void set
35
		this.minions = minion
35
Users(Set users) {
36
s
36
		this.users = users
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