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 StringPropertyValue implements PropertyValue { private Long id; private String value; public StringPropertyValue() { } public StringPropertyValue(String value) { this.value = value; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getValue() { return value; } public void setValue(String value) { this.value = value; } public String asString() { return value;
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/any/StringPropertyValue.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class MyInterfaceImpl implements MyInterface {
1
public class StringPropertyValue implements PropertyValue {
2
	private String key1;
2
	private Long id;
3
	private String key2;
3
	private String 
4
	private String name;
5
	public String getKey1() {
6
		return key1;
7
	}
8
	public void setKey1
4
value;
5
	public StringPropertyValue() {
6
	}
9
(String key1) {
7
	public StringPropertyValue(String value) {
10
		this.key1 = key1;
8
		this.value = value;
11
	}
9
	}
12
	public String getKey2() {
10
	public Long getId() {
13
		return key2;
11
		return id;
14
	}
12
	}
15
	public void setKey2(String key2) {
13
	public void setId(Long id) {
16
		this.key2 = key2;
14
		this.id = id;
17
	}
15
	}
18
	public String getName() {
16
	public String getValue() {
19
		return name;
17
		return value;
20
	}
18
	}
21
	public void setName(String name) {
19
	public void setValue(String value) {
22
		this.name = nam
20
		this.value = value;
21
	}
22
	public String asString() {
23
e;
23
		return value;
24
	
24
	
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