public class Child { private String name; private Parent parent; public Child() { } public Child(String name) { this.name = name; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Parent getParent() { return parent; } public void setParent(Parent parent) { this.parent = parent;
public class TextHolder { private Long id; private String theText; public TextHolder() { } public TextHolder(String theText) { this.theText = theText; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getTheText() { return theText; } public void setTheText(String theText) { this.theText = theText;
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/Child.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/readonly/TextHolder.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Child {
1
public class TextHolder {
2
	private String name;
2
	private 
3
	private Parent parent;
4
	public Child
3
Long id;
4
	private String theText;
5
() {
5
	public TextHolder() {
6
	}
6
	}
7

8
	public Child(String name) {
7
	public TextHolder(String theText) {
9
		this.name = name;
8
		this.
10
	}
11

9
theText = theText;
10
	}
12
	public String getName() {
11
	public Long getId() {
13
		return name;
12
		return 
14
	}
15

13
id;
14
	}
16
	public void setName(String name) {
15
	public void setId(Long id) {
17
		this.name = name;
16
		this.
18
	}
19
	public Parent getParen
17
id = id;
18
	}
20
t() {
19
	public String getTheText() {
21
		return parent;
20
		return theText;
22
	}
21
	}
23

24
	public void setParent(Parent parent) {
22
	public void setTheText(String theText) {
25
		this.parent = parent;
23
		this.theText = theText;
26
	
24
	
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