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 MySibling { private Long id; private String name; private MyEntity entity; public MySibling() { } public MySibling(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 MyEntity getEntity() { return entity; } public void setEntity(MyEntity entity) { this.entity = entity;
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/generatedkeys/identity/MySibling.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class ListOwner {
1
public class MySibling {
2
	private String name;
2
	private Long id;
3
	private ListOwner parent;
3
	private 
4
	private List children = new ArrayList()
4
String name;
5
;
5
	private MyEntity entity;
6
	public ListOwner() {
6
	public MySibling() {
7
	}
7
	}
8
	public ListOwner(String name) {
8
	public MySibling(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 MyEntity getEntity() {
24
		return children;
24
		return entity;
25
	}
25
	}
26
	public void setChildren(List children) {
26
	public void set
27
		this.children = children
27
Entity(MyEntity entity) {
28
;
28
		this.entity = entity;
29
	
29
	
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