public class Person { private Long id; private String name; private Object data; 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 Object getData() { return data; } public void setData(Object data) { this.data = data;
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/any/Person.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 Person {
1
public class MyEntity {
2
	private Long id;
2
	private Long id;
3
	private String name;
3
	private String name;
4
	private Object data;
4
	private 
5
MyEntity other;
5
	public Long getId() {
6
	public Long getId() {
6
		return id;
7
		return id;
7
	}
8
	}
8
	public void setId(Long id) {
9
	public void setId(Long id) {
9
		this.id = id;
10
		this.id = id;
10
	}
11
	}
11
	public String getName() {
12
	public String getName() {
12
		return name;
13
		return name;
13
	}
14
	}
14
	public void setName(String name) {
15
	public void setName(String name) {
15
		this.name = name;
16
		this.name = name;
16
	}
17
	}
17
	public Object getData() {
18
	public MyEntity getOther() {
18
		return data;
19
		return other;
19
	}
20
	}
20
	public void setData(Object data) {
21
	public void setOther(MyEntity other) {
21
		this.data = data;
22
		this.other = other;
22
	
23
	
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