public class Child { private Long id; private String name; private Parent parent; private ChildInfo info; public Child() { } public Child(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 Parent getParent() { return parent; } public void setParent(Parent parent) { this.parent = parent; } public ChildInfo getInfo() { return info; } public void setInfo(ChildInfo info) { this.info = info;
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/cascade/Child.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 Child {
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 Parent parent;
6
	private ChildInfo info;
7

5
department;
6
	private Employee manager;
7
	private Set minions = new HashSet();
8
	public Child() {
8
	public Employee() {
9
	}
9
	}
10

11
	public Child(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

28
department = department;
29
	}
31
	public Parent getParent() {
30
	public Employee getManager() {
32
		return parent;
31
		return 
33
	}
34

32
manager;
33
	}
35
	public void setParent(Parent parent) {
34
	public void setManager(Employee manager) {
36
		this.parent = parent;
35
		this.
37
	}
38
	public ChildInfo getInfo
36
manager = manager;
37
	}
39
() {
38
	public Set getMinions() {
40
		return info;
39
		return min
41
	}
42

40
ions;
41
	}
43
	public void setInfo(ChildInfo info) {
42
	public void setMinions(Set minions) {
44
		this.info = info;
43
		this.minions = minions;
45
	
44
	
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