public class Owner implements Serializable { private Long id; private String name; public Owner() { } public Owner(String name) { this.name = name; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } 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/proxy/Owner.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 Owner implements Serializable {
1
public class Parent {
2
	private Long id;
2
	private 
3
	private String name;
3
String name;
4
	private Set children = new HashSet();
5

4
	public Owner() {
6
	public Parent() {
5
	}
7
	}
8

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

9
	public Long getId() {
13
	public String getName() {
10
		return id;
14
		return 
11
	}
15
name;
16
	}
17

12
	public void setId(Long id) {
18
	public void setName(String name) {
13
		this.id = id;
19
		this.
14
	}
15
	public String getName
20
name = name;
21
	}
16
() {
22
	public Set getChildren() {
17
		return name;
23
		return 
18
	}
24
children;
25
	}
26

19
	public void setName(String name) {
27
	public void setChildren(Set children) {
20
		this.name = name
28
		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