public class ChildInfo { private Long id; private Child owner; private String info; public ChildInfo() { } public ChildInfo(String info) { this.info = info; } public Long getId() { return id; } public Child getOwner() { return owner; } public void setOwner(Child owner) { this.owner = owner; } public String getInfo() { return info; } public void setInfo(String info) { this.info = info
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/jpa/cascade/ChildInfo.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 ChildInfo {
1
public class Object2 {
2
	private Long id;
2
	private Long id;
3
	private Child owner;
3
	private 
4
	private String info;
5
	public ChildInfo() {
6
	}
7
	public ChildInfo(String info
4
String dummy;
5
	private MainObject belongsToMainObj;
8
) {
6
	public Long getId() {
9
		this.info = info;
7
		
10
	}
11
	public Long getId(
8
return id;
9
	}
12
) {
10
	public void setId(Long l) {
13
		return id;
11
		
14
	}
15
	public Child getOwner
12
this.id = l;
13
	}
14
	
16
() {
15
	public String getDummy() {
17
		return owner;
16
		return 
18
	}
19

17
dummy;
18
	}
20
	public void setOwner(Child owner) {
19
	public void setDummy(String string) {
21
		this.owner = owner;
20
		
22
	}
23
	public String getInfo
21
dummy = string;
22
	}
24
() {
23
	public MainObject getBelongsToMainObj() {
25
		return info;
24
		return 
26
	}
27
	public void setInfo(String info
25
belongsToMainObj;
26
	}
28
) {
27
	public void setBelongsToMainObj(MainObject object) {
29
		this.info = info
28
		belongsToMainObj = object
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