public class MyInterfaceImpl implements MyInterface { private String key1; private String key2; private String name; public String getKey1() { return key1; } public void setKey1(String key1) { this.key1 = key1; } public String getKey2() { return key2; } public void setKey2(String key2) { this.key2 = key2; } public String getName() { return name; } public void setName(String name) { this.name = name;
public class Document { private Long id; private String location; private User owner; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getLocation() { return location; } public void setLocation(String location) { this.location = location; } public User getOwner() { return owner; } public void setOwner(User owner) { this.owner = owner;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/abstractembeddedcomponents/cid/MyInterfaceImpl.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/component/cascading/toone/Document.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class MyInterfaceImpl implements MyInterface {
1
public class Document {
2
	private String key1;
2
	private Long id;
3
	private String key2;
3
	private String location;
4
	private String name;
4
	private User owner;
5
	public String getKey1() {
5
	public Long getId() {
6
		return key1;
6
		return id;
7
	}
7
	}
8
	public void setKey1(String key1) {
8
	public void setId(Long id) {
9
		this.key1 = key1;
9
		this.id = id;
10
	}
10
	}
11
	public String getKey2() {
11
	public String getLocation() {
12
		return key2;
12
		return location;
13
	}
13
	}
14
	public void setKey2(String key2) {
14
	public void set
15
		this.key2 = key2
15
Location(String location) {
16
;
16
		this.location = location;
17
	}
17
	}
18
	public String getName() {
18
	public User getOwner() {
19
		return name;
19
		return owner;
20
	}
20
	}
21
	public void setName(String name) {
21
	public void setOwner(User owner) {
22
		this.name = name;
22
		this.owner = owner;
23
	
23
	
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