public class Parent { private Long id; private Set deleteOrphanChildren; private Set children; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Set getDeleteOrphanChildren() { return deleteOrphanChildren; } public void setDeleteOrphanChildren(Set deleteOrphanChildren) { this.deleteOrphanChildren = deleteOrphanChildren; } public Set getChildren() { return children; } public void setChildren(Set children) { this.children = children;
public class Document { private Long id; private String location; private User owner; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getLocation() { return location; } public void setLocation(String location) { this.location = location; } public User getOwner() { return owner; } public void setOwner(User owner) { this.owner = owner;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/cascade/Parent.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/component/cascading/toone/Document.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Parent {
1
public class Document {
2
	private Long id;
2
	private Long id;
3
	private Set deleteOrphanChildren;
3
	private String location;
4
	private Set children;
4
	private 
5
User owner;
6

5
	public Long getId() {
7
	public Long getId() {
6
		return id;
8
		return id;
7
	}
9
	}
10

8
	public void setId(Long id) {
11
	public void setId(Long id) {
9
		this.id = id;
12
		this.id = id;
10
	}
13
	}
14

11
	public Set getDeleteOrphanChildren() {
15
	public String getLocation() {
12
		return deleteOrphanChildren;
16
		return location;
13
	}
17
	}
18

14
	public void setDeleteOrphanChildren(Set deleteOrphanChildren) {
19
	public void setLocation(String location) {
15
		this.deleteOrphanChildren = deleteOrphanChildren;
20
		this.location = location;
16
	}
21
	}
22

17
	public Set getChildren() {
23
	public User getOwner() {
18
		return children;
24
		return 
19
	}
25
owner;
26
	}
27

20
	public void setChildren(Set children) {
28
	public void setOwner(User owner) {
21
		this.children = children;
29
		this.owner = owner;
22
	
30
	
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