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 User { private String name; private Map groups = new HashMap(); public User(String name) { this.name = name; } User() {} public Map getGroups() { return groups; } public void setGroups(Map groups) { this.groups = groups; } 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/collection/set/Parent.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/joinfetch/User.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Parent {
1
public class User {
2
	private String name;
2
	private String name;
3
	private Set children = new HashSet();
3
	private Map groups = new Hash
4
	public Parent() {
5
	}
6
	public Parent
4
Map();
7
(String name) {
5
	public User(String name) {
8
		this.name = name;
6
		this.name = name;
9
	}
7
	}
10
	public String getName
8
	User() {}
11
() {
9
	public Map getGroups() {
12
		return name;
10
		return 
13
	}
14

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

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