public class Silly implements Serializable { private Long id; private String name; private Other other; public Silly() { } public Silly(String name) { this.name = name; } public Silly(String name, Other other) { this.name = name; this.other = 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 Other getOther() { return other; } public void setOther(Other other) { this.other = other;
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/connections/Silly.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 Silly implements Serializable {
1
public class ChildAssigned {
2
	private Long id;
2
	private Long id;
3
	private String name;
3
	private String name;
4
	private Other other;
4
	private 
5
	public Silly
5
ParentAssigned parent;
6
	private ChildInfoAssigned info;
6
() {
7
	public ChildAssigned() {
7
	}
8
	}
9

8
	public Silly(String name) {
10
	public ChildAssigned(Long id, String name) {
11
		this.id = id;
9
		this.name = name;
12
		this.name = name;
10
	}
13
	}
14

11
	public Silly(String name, Other other) {
15
	public Long getId() {
12
		this.name = name;
16
		
13
		this.other = other;
14
	}
17
return id;
18
	}
19

15
	public Long getId() {
20
	public String getName() {
16
		return id;
21
		return 
17
	}
22
name;
23
	}
24

18
	public void setId(Long id) {
25
	public void setName(String name) {
19
		this.id = id;
26
		this.
20
	}
21
	public String getName
27
name = name;
28
	}
22
() {
29
	public ParentAssigned getParent() {
23
		return name;
30
		return 
24
	}
31
parent;
32
	}
33

25
	public void setName(String name) {
34
	public void setParent(ParentAssigned parent) {
26
		this.name = name;
35
		this.
27
	}
28
	public Other getOther
36
parent = parent;
37
	}
29
() {
38
	public ChildInfoAssigned getInfo() {
30
		return other;
39
		return 
31
	}
40
info;
41
	}
42

32
	public void setOther(Other other) {
43
	public void setInfo(ChildInfoAssigned info) {
33
		this.other = other;
44
		this.info = info;
34
	
45
	
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