public class Item { private Long id; private String name; private long version; private Set parts = new HashSet(); public Item() { } public Item(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 long getVersion() { return version; } public void setVersion(long version) { this.version = version; } public Set getParts() { return parts; } public void setParts(Set parts) { this.parts = parts;
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;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/jpa/Item.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/subclassfilter/Employee.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Item {
1
public class 
2
	
2
Employee extends Person {
3
private Long id;
3
    private String title;
4
	private String name;
4
	private String 
5
	private long version;
5
department;
6
	private Employee manager;
6
	private Set parts = new HashSet();
7
	private Set minions = new HashSet();
7

8
	public Item() {
8
	public Employee() {
9
	}
9
	}
10

11
	public Item(String name) {
10
	public Employee(String name) {
12
		this.name = name;
11
		super( name
13
	}
14

12
 );
13
	}
15
	public Long getId() {
14
	public String getTitle() {
16
		return id;
15
		return 
17
	}
18

16
title;
17
	}
19
	public void setId(Long id) {
18
	public void setTitle(String title) {
20
		this.id = id;
19
		this.
21
	}
22

20
title = title;
21
	}
23
	public String getName() {
22
	public String getDepartment() {
24
		return name;
23
		return 
25
	}
26

24
department;
25
	}
27
	public void setName(String name) {
26
	public void setDepartment(String department) {
28
		this.name = name;
27
		this.
29
	}
30
	public long getVersion
28
department = department;
29
	}
31
() {
30
	public Employee getManager() {
32
		return version;
31
		return 
33
	}
34

32
manager;
33
	}
35
	public void setVersion(long version) {
34
	public void setManager(Employee manager) {
36
		this.version = version;
35
		this.
37
	}
38

36
manager = manager;
37
	}
39
	public Set getParts() {
38
	public Set getMinions() {
40
		return parts;
39
		return minions;
41
	}
40
	}
42

43
	public void setParts(Set parts) {
41
	public void setMinions(Set minions) {
44
		this.parts = parts;
42
		this.minions = minions;
45
	
43
	
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