public class Child { private Long id; private String name; private Parent parent; private ChildInfo info; public Child() { } public Child(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 Parent getParent() { return parent; } public void setParent(Parent parent) { this.parent = parent; } public ChildInfo getInfo() { return info; } public void setInfo(ChildInfo info) { this.info = info;
public class ChildAssigned { private Long id; private String name; private ParentAssigned parent; private ChildInfoAssigned info; public ChildAssigned() { } public ChildAssigned(Long id, String name) { this.id = id; this.name = name; } public Long getId() { return id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public ParentAssigned getParent() { return parent; } public void setParent(ParentAssigned parent) { this.parent = parent; } public ChildInfoAssigned getInfo() { return info; } public void setInfo(ChildInfoAssigned info) { this.info = info;
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/Child.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/jpa/cascade/ChildAssigned.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Child {
1
public class ChildAssigned {
2
	private Long id;
2
	private Long id;
3
	private String name;
3
	private String name;
4
	private Parent parent;
4
	private ParentAssigned parent;
5
	private ChildInfo info;
5
	private ChildInfoAssigned info;
6
	public Child() {
6
	public ChildAssigned() {
7
	}
7
	}
8
	public Child(String name) {
8
	public ChildAssigned(Long id, String name) {
9
		this.id = id;
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
		this.id = id;
16
	}
17
	public String getName() {
15
	public String getName() {
18
		return name;
16
		return name;
19
	}
17
	}
20
	public void setName(String name) {
18
	public void setName(String name) {
21
		this.name = name;
19
		this.name = name;
22
	}
20
	}
23
	public Parent getParent() {
21
	public ParentAssigned getParent() {
24
		return parent;
22
		return parent;
25
	}
23
	}
26
	public void setParent(Parent parent) {
24
	public void setParent(ParentAssigned parent) {
27
		this.parent = parent;
25
		this.parent = parent;
28
	}
26
	}
29
	public ChildInfo getInfo() {
27
	public ChildInfoAssigned getInfo() {
30
		return info;
28
		return info;
31
	}
29
	}
32
	public void setInfo(ChildInfo info) {
30
	public void setInfo(ChildInfoAssigned info) {
33
		this.info = info;
31
		this.info = info;
34
	
32
	
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