public class User { private String name; private List groups = new ArrayList(); User() {} public User(String name) { this.name = name; } public String getName() { return name; } void setName(String name) { this.name = name; } public List getGroups() { return groups; } void setGroups(List groups) { this.groups = groups;
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/idbag/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 List groups = new ArrayList();
3
	private 
4
	
5
	User() {}
6
	
4
Set children = new HashSet();
5
	public Parent() {
6
	}
7

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

10
	public String getName() {
12
	public String getName() {
11
		return name;
13
		return name;
12
	}
14
	}
13
	
14
	
15
void setName(String name) {
15
	public void setName(String name) {
16
		this.name = name;
16
		this.name = name;
17
	}
17
	}
18

18
	public List getGroups() {
19
	public Set getChildren() {
19
		return groups;
20
		return 
20
	}
21
	
22
	void setGroups(List groups
21
children;
22
	}
23
) {
23
	public void setChildren(Set children) {
24
		this.groups = groups;
24
		this.children = children;
25
	
25
	
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