public class ComponentOwner { private Long id; private String name; private Component component; public ComponentOwner() { } public ComponentOwner(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 Component getComponent() { return component; } public void setComponent(Component component) { this.component = component; } public static class Component { private int generated; public int getGenerated() { return generated; } public void setGenerated(int generated) { this.generated = generated
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
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/generated/ComponentOwner.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/instrument/domain/Entity.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class ComponentOwner {
1
public class Entity {
2
	private Long id;
2
	private Long id;
3
	private String name;
3
	private String name;
4
	private Component component;
4
	private 
5
	public ComponentOwner
5
Entity child;
6
	private Entity sibling;
6
() {
7
	public Entity() {
7
	}
8
	}
8
	public ComponentOwner(String name) {
9
	public Entity(String name) {
9
		this.name = name;
10
		this.name = name;
10
	}
11
	}
11
	public Long getId() {
12
	public Long getId() {
12
		return id;
13
		return id;
13
	}
14
	}
14
	public void setId(Long id) {
15
	public void setId(Long id) {
15
		this.id = id;
16
		this.id = id;
16
	}
17
	}
17
	public String getName() {
18
	public String getName() {
18
		return name;
19
		return name;
19
	}
20
	}
20
	public void setName(String name) {
21
	public void setName(String name) {
21
		this.name = name;
22
		this.name = name;
22
	}
23
	}
23
	public Component getComponent() {
24
	public Entity getChild() {
24
		return component;
25
		return child;
25
	}
26
	}
26
	public void setComponent(Component component) {
27
	public void setC
27
		this.component = component;
28
	}
29
	public static class Component {
30
		private int generated;
31
		public int getGenerated
28
hild(Entity child) {
29
		this.child = child;
30
	}
32
() {
31
	public Entity getSibling() {
33
			return generated;
32
		return sibling;
34
		}
33
	}
35
		public void setGenerated(int generated) {
34
	public void setSibling(Entity sibling) {
36
			this.generated = generated
35
		this.sibling = sibling
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