public class Entity { private Long id; private String name; private Entity child; private Entity sibling; public Entity() { } public Entity(String name) { this.name = name; } 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 Entity getChild() { return child; } public void setChild(Entity child) { this.child = child; } public Entity getSibling() { return sibling; } public void setSibling(Entity sibling) { this.sibling = sibling
public class EntityWithOneToOnes { private Long id; private String name; private OneToOneNoProxy oneToOneNoProxy; private OneToOneProxy oneToOneProxy; public EntityWithOneToOnes() { } public EntityWithOneToOnes(String name) { this.name = name; } 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 OneToOneNoProxy getOneToOneNoProxy() { return oneToOneNoProxy; } public void setOneToOneNoProxy(OneToOneNoProxy oneToOneNoProxy) { this.oneToOneNoProxy = oneToOneNoProxy; } public OneToOneProxy getOneToOneProxy() { return oneToOneProxy; } public void setOneToOneProxy(OneToOneProxy oneToOneProxy) { this.oneToOneProxy = oneToOneProxy
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/instrument/domain/Entity.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/instrument/domain/EntityWithOneToOnes.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Entity {
1
public class EntityWithOneToOnes {
2
	private Long id;
2
	private Long id;
3
	private String name;
3
	private String name;
4
	private Entity child;
4
	private 
5
	private Entity sibling;
6

5
OneToOneNoProxy oneToOneNoProxy;
6
	private OneToOneProxy oneToOneProxy;
7
	public Entity() {
7
	public EntityWithOneToOnes() {
8
	}
8
	}
9

10
	public Entity(String name) {
9
	public EntityWithOneToOnes(String name) {
11
		this.name = name;
10
		this.name = name;
12
	}
11
	}
13

14
	public Long getId() {
12
	public Long getId() {
15
		return id;
13
		return id;
16
	}
14
	}
17

18
	public void setId(Long id) {
15
	public void setId(Long id) {
19
		this.id = id;
16
		this.id = id;
20
	}
17
	}
21

22
	public String getName() {
18
	public String getName() {
23
		return name;
19
		return name;
24
	}
20
	}
25

26
	public void setName(String name) {
21
	public void setName(String name) {
27
		this.name = name;
22
		this.name = name;
28
	}
23
	}
29

30
	public Entity getChild() {
24
	public OneToOneNoProxy getOneToOneNoProxy() {
31
		return child;
25
		return 
32
	}
33
	public void setChild(Entity child
26
oneToOneNoProxy;
27
	}
34
) {
28
	public void setOneToOneNoProxy(OneToOneNoProxy oneToOneNoProxy) {
35
		this.child = child;
29
		this.
36
	}
37
	public Entity getSibling
30
oneToOneNoProxy = oneToOneNoProxy;
31
	}
38
() {
32
	public OneToOneProxy getOneToOneProxy() {
39
		return sibling;
33
		return 
40
	}
41
	public void setSibling(Entity sibling
34
oneToOneProxy;
35
	}
42
) {
36
	public void setOneToOneProxy(OneToOneProxy oneToOneProxy) {
43
		this.sibling = sibling
37
		this.oneToOneProxy = oneToOneProxy
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