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;
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/joinfetch/User.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 User {
1
public class Parent {
2
	private String name;
2
	private String name;
3
	private Map groups = new HashMap();
3
	private Set children = new Hash
4
	public User
4
Set();
5
	public Parent() {
6
	}
5
(String name) {
7
	public Parent(String name) {
6
		this.name = name;
8
		this.name = name;
7
	}
9
	}
8
	User() {}
9
	public Map getGroups
10
() {
10
	public String getName() {
11
		return groups;
11
		return 
12
	}
12
name;
13
	}
14

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

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