public class Parent { private String name; private Set children = new HashSet(); public Parent() { } public Parent(String name) { this.name = name; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Set getChildren() { return children; } public void setChildren(Set children) { this.children = children
public class Parent { private String name; private List children = new ArrayList(); Parent() {} public Parent(String name) { this.name = name; } public List getChildren() { return children; } public void setChildren(List children) { this.children = children; } public String getName() { return name; } public void setName(String name) { this.name = name
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/reattachment/Parent.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/unidir/Parent.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Parent {
1
public class Parent {
2
	private String name;
2
	private String name;
3
	private Set children = new HashSet();
3
	private List children = new 
4
	public 
4
ArrayList();
5
Parent() {
5
	Parent() {
6
	}
7

6
}
8
	public Parent(String name) {
7
	public Parent(String name) {
9
		this.name = name;
8
		this.name = name;
10
	}
9
	}
11

12
	public String getName() {
10
	public List getChildren() {
13
		return name;
11
		return 
14
	}
15

12
children;
13
	}
16
	public void setName(String name) {
14
	public void setChildren(List children) {
17
		this.name = name;
15
		this.
18
	}
19
	public Set getChildren
16
children = children;
17
	}
20
() {
18
	public String getName() {
21
		return children;
19
		return 
22
	}
23

20
name;
21
	}
24
	public void setChildren(Set children) {
22
	public void setName(String name) {
25
		this.children = children
23
		this.name = name
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