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 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
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/collection/set/Parent.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/reattachment/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 Set children = new HashSet();
4
	public Parent() {
4
	public Parent() {
5
	}
5
	}
6
	public Parent(String name) {
6
	public Parent(String name) {
7
		this.name = name;
7
		this.name = name;
8
	}
8
	}
9
	public String getName() {
9
	public String getName() {
10
		return name;
10
		return name;
11
	}
11
	}
12
	public void setName(String name) {
12
	public void setName(String name) {
13
		this.name = name;
13
		this.name = name;
14
	}
14
	}
15
	public Set getChildren() {
15
	public Set getChildren() {
16
		return children;
16
		return children;
17
	}
17
	}
18
	public void setChildren(Set children) {
18
	public void setChildren(Set children) {
19
		this.children = children
19
		this.children = children
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