public class ListOwner { private String name; private ListOwner parent; private List children = new ArrayList(); public ListOwner() { } public ListOwner(String name) { this.name = name; } public String getName() { return name; } public void setName(String name) { this.name = name; } public ListOwner getParent() { return parent; } public void setParent(ListOwner parent) { this.parent = parent; } public List getChildren() { return children; } public void setChildren(List children) { this.children = children
public class Customer { private Long id; private String name; private Collection orders = new ArrayList(); public Customer() { } public Customer(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 Collection getOrders() { return orders; } public void setOrders(Collection orders) { this.orders = orders
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/collection/list/ListOwner.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/keymanytoone/bidir/component/Customer.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class ListOwner {
1
public class Customer {
2
	private String name;
2
	private Long id;
3
	private ListOwner parent;
3
	private 
4
	private List children
4
String name;
5
 = new ArrayList();
5
	private Collection orders = new ArrayList();
6
	public ListOwner() {
6
	public Customer() {
7
	}
7
	}
8
	public ListOwner(String name) {
8
	public Customer(String name) {
9
		this.name = name;
9
		this.name = name;
10
	}
10
	}
11
	public String getName() {
11
	public Long getId() {
12
		return name;
12
		return id;
13
	}
13
	}
14
	public void setName(String name) {
14
	public void setId(Long id) {
15
		this.name = name;
15
		this.id = id;
16
	}
16
	}
17
	public ListOwner getParent() {
17
	public String getName() {
18
		return parent;
18
		return name;
19
	}
19
	}
20
	public void setParent(ListOwner parent) {
20
	public void setName(String name) {
21
		this.parent = parent;
21
		this.name = name;
22
	}
22
	}
23
	public List getChildren() {
23
	public Collection getOrders() {
24
		return children;
24
		return orders;
25
	}
25
	}
26
	public void setChildren(List children) {
26
	public void set
27
		this.children = children
27
Orders(Collection orders) {
28
		this.orders = orders
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