public class Master implements Serializable { private Long id; private String name; private Detail detail; public Detail getDetail() { return detail; } public void setDetail(Detail detail) { this.detail = detail; } 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 MyEntity { private Long id; private String name; private MyEntity other; 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 MyEntity getOther() { return other; } public void setOther(MyEntity other) { this.other = other
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/formulajoin/Master.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/jpa/MyEntity.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Master implements Serializable {
1
public class MyEntity {
2
	private Long id;
2
	private Long id;
3
	private String name;
3
	private String name;
4
	private Detail detail;
4
	private 
5
	public Detail getDetail
5
MyEntity other;
6
() {
6
	public Long getId() {
7
		return detail;
7
		return 
8
	}
8
id;
9
	}
10

9
	public void setDetail(Detail detail) {
11
	public void setId(Long id) {
10
		this.detail = detail;
12
		this.
11
	}
13
id = id;
14
	}
15

12
	public Long getId() {
16
	public String getName() {
13
		return id;
17
		return 
14
	}
18
name;
19
	}
20

15
	public void setId(Long id) {
21
	public void setName(String name) {
16
		this.id = id;
22
		this.
17
	}
23
name = name;
24
	}
25

18
	public String getName() {
26
	public MyEntity getOther() {
19
		return name;
27
		return 
20
	}
28
other;
29
	}
30

21
	public void setName(String name) {
31
	public void setOther(MyEntity other) {
22
		this.name = name
32
		this.other = other
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