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;
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;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/readonly/TextHolder.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/reattachment/Child.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class TextHolder {
1
public class Child {
2
	private Long id;
2
	private 
3
	private String theText;
4
	public TextHolder
3
String name;
4
	private Parent parent;
5
() {
5
	public Child() {
6
	}
6
	}
7

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

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

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

20
	public void setTheText(String theText) {
26
	public void setParent(Parent parent) {
21
		this.theText = theText;
27
		this.parent = parent;
22
	
28
	
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