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 Person { private String name; private Date dob; private String currentAddress; Person() {} public Person(String name, Date dob, String address) { this.name = name; this.dob = dob; this.currentAddress = address; } public Date getDob() { return dob; } public void setDob(Date dob) { this.dob = dob; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getCurrentAddress() { return currentAddress; } public void setCurrentAddress(String currentAddress) { this.currentAddress = currentAddress
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/timestamp/Person.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Silly implements Serializable {
1
public class Person {
2
	private Long id;
2
	private 
3
	private String name;
4
	private Other other;
5
	public Silly() {
6
	}
3
String name;
4
	private Date dob;
5
	private String currentAddress;
6
	Person() {}
7
	public Silly(String name) {
7
	public Person(String name
8
		this.name = name;
9
	}
10
	public Silly(String name, Other other) {
8
, Date dob, String address) {
11
		this.name = name;
9
		this.name = name;
12
		this.other = other
10
		this.dob = dob;
13
;
11
		this.currentAddress = address;
14
	}
12
	}
15
	public Long getId() {
13
	public Date getDob() {
16
		return id;
14
		return dob;
17
	}
15
	}
18
	public void setId(Long id) {
16
	public void setDob(Date dob) {
19
		this.id = id;
17
		this.dob = dob;
20
	}
18
	}
21
	public String getName() {
19
	public String getName() {
22
		return name;
20
		return name;
23
	}
21
	}
24
	public void setName(String name) {
22
	public void setName(String name) {
25
		this.name = name;
23
		this.name = name;
26
	}
24
	}
27
	public Other getOther() {
25
	public 
28
		return other
26
String getCurrentAddress() {
29
;
27
		return currentAddress;
30
	}
28
	}
31
	public void setOther(Other other) {
29
	public void set
32
		this.other = other
30
CurrentAddress(String currentAddress) {
31
		this.currentAddress = currentAddress
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