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 Customer { public Customer() { super(); } public Customer(String orgName, String custName, String add) { this.orgName = orgName; this.customerName = custName; this.address = add; } private String orgName; private String customerName; private String address; public String getAddress() { return address; } public void setAddress(String address) { this.address = address; } public String getCustomerName() { return customerName; } public void setCustomerName(String customerName) { this.customerName = customerName; } public String getOrgName() { return orgName; } public void setOrgName(String orgName) { this.orgName = orgName;
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/idclass/Customer.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Silly implements Serializable {
1
public class 
2
	private Long id;
3
	private String name;
4
	private Other other;
5
	public Silly() {
2
Customer {
3
	public Customer() {
4
		super();
6
	}
5
	}
7
	public Silly(String name) {
6
	public Customer(String orgName, String custName, String add) {
8
		this.name = name;
7
		this.orgName = orgName;
9
	}
10
	public Silly(String name, Other other) {
11
		this.name = name;
12
		this.other = other;
13
	}
8
		this.customerName = custName;
9
		this.address = add;
10
	}
11
	private String orgName;
12
	private String customerName;
13
	private String address;
14
	public Long getId() {
14
	public String getAddress() {
15
		return id;
15
		return address;
16
	}
16
	}
17
	public void setId(Long id) {
17
	public void setAddress(String address) {
18
		this.id = id;
18
		this.address = address;
19
	}
19
	}
20
	public String getName() {
20
	public String getCustomerName() {
21
		return name;
21
		return customerName;
22
	}
22
	}
23
	public void setName(String name) {
23
	public void setCustomerName(String customerName) {
24
		this.name = name;
24
		this.customerName = customerName;
25
	}
25
	}
26
	public Other getOther() {
26
	public String getOrgName() {
27
		return other;
27
		return orgName;
28
	}
28
	}
29
	public void setOther(Other other) {
29
	public void setOrgName(String orgName) {
30
		this.other = other;
30
		this.orgName = orgName;
31
	
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