public class Object2 { private Long id; private String dummy; private MainObject belongsToMainObj; public Long getId() { return id; } public void setId(Long l) { this.id = l; } public String getDummy() { return dummy; } public void setDummy(String string) { dummy = string; } public MainObject getBelongsToMainObj() { return belongsToMainObj; } public void setBelongsToMainObj(MainObject object) { belongsToMainObj = object
public class Speech { private Integer id; private String name; private Double length; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public Double getLength() { return length; } public void setLength(Double length) { this.length = length; } public String getName() { return name; } public void setName(String name) { this.name = name
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/Object2.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/sql/hand/Speech.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Object2 {
1
public class Speech {
2
	private Long id;
2
	private Integer id;
3
	private String dummy;
3
	private String name;
4
	private MainObject belongsToMainObj;
4
	private 
5
Double length;
6

5
	public Long getId() {
7
	public Integer getId() {
6
		return id;
8
		return id;
7
	}
9
	}
10

8
	public void setId(Long l) {
11
	public void setId(Integer id) {
9
		this.id = l;
12
		this.id = 
10
	}
11
	
12
	public String getDummy
13
id;
14
	}
13
() {
15
	public Double getLength() {
14
		return dummy;
16
		return 
15
	}
17
length;
18
	}
19

16
	public void setDummy(String string) {
20
	public void setLength(Double length) {
17
		dummy = string;
21
		
18
	}
19
	public MainObject getBelongsToMainObj
22
this.length = length;
23
	}
20
() {
24
	public String getName() {
21
		return belongsToMainObj;
25
		return 
22
	}
23
	public void setBelongsToMainObj(MainObject object
26
name;
27
	}
24
) {
28
	public void setName(String name) {
25
		belongsToMainObj = object
29
		this.name = name
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