public class Item { private Long id; private String name; private String description; public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } 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 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;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testing/src/main/java/org/hibernate/test/cache/Item.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/Object2.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Item {
1
public class Object2 {
2
	private Long id;
2
	private Long id;
3
	private String name;
3
	private String dummy;
4
	private String description;
4
	private MainObject belongsToMainObj;
5
	
6
	public String getDescription() {
5
	public Long getId() {
7
		return description;
6
		return id;
8
	}
7
	}
9
	public void setDescription(String description) {
8
	public void set
10
		this.description = description
9
Id(Long l) {
11
;
10
		this.id = l;
12
	}
11
	}
13
	
12
	
14
public Long getId() {
13
	public String getDummy() {
15
		return id;
14
		return dummy;
16
	}
15
	}
17
	public void setId(Long id) {
16
	public void set
18
		this.id = id
17
Dummy(String string) {
19
;
18
		dummy = string;
20
	}
19
	}
21
	public String getName() {
20
	public 
22
		return name
21
MainObject getBelongsToMainObj() {
23
;
22
		return belongsToMainObj;
24
	}
23
	}
25
	public void setName(String name) {
24
	public void set
26
		this.name = name
25
BelongsToMainObj(MainObject object) {
27
;
26
		belongsToMainObj = object;
28
	
27
	
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