public class Transaction { private Long id; private String description; private MonetoryAmount value; 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 MonetoryAmount getValue() { return value; } public void setValue(MonetoryAmount value) { this.value = value;
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/testsuite/src/test/java/org/hibernate/test/cut/Transaction.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 Transaction {
1
public class Object2 {
2
	private Long id;
2
	private Long id;
3
	private String description;
3
	private String dummy;
4
	private MonetoryAmount value;
4
	private MainObject belongsToMainObj;
5
	
6
	public String getDescription() {
5
	public Long getId() {
7
		return description;
6
		return id;
8
	}
7
	}
9
	
10
	public void setDescription(String description) {
8
	public void set
11
		this.description = description
9
Id(Long l) {
12
;
10
		this.id = l;
13
	}
11
	}
14
	
12
	
15
	public Long getId() {
13
	public String getDummy() {
16
		return id;
14
		return dummy;
17
	}
15
	}
18
	
19
	public void setId(Long id) {
16
	public void set
20
		this.id = id
17
Dummy(String string) {
21
;
18
		dummy = string;
22
	}
19
	}
23
	
24
	public MonetoryAmount getValue() {
20
	public M
25
		return value
21
ainObject getBelongsToMainObj() {
26
;
22
		return belongsToMainObj;
27
	}
23
	}
28
	
29
	public void setValue(MonetoryAmount value) {
24
	public void set
30
		this.value = value
25
BelongsToMainObj(MainObject object) {
31
;
26
		belongsToMainObj = object;
32
	
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