public class Person { private Long id; private String name; private Object data; 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 Object getData() { return data; } public void setData(Object data) { this.data = data;
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/any/Person.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 Person {
1
public class 
2
	private Long id;
3
	private String name;
4
	private Object data
2
StringPropertyValue implements PropertyValue {
3
	private Long id;
4
	private String value;
5
	public StringPropertyValue() {
6
	}
7
	public StringPropertyValue(String value) {
5
;
8
		this.value = value;
9
	}
6
	public Long getId() {
10
	public Long getId() {
7
		return id;
11
		return id;
8
	}
12
	}
9
	public void setId(Long id) {
13
	public void setId(Long id) {
10
		this.id = id;
14
		this.id = id;
11
	}
15
	}
12
	public String getName() {
16
	public String getValue() {
13
		return name;
17
		return value;
14
	}
18
	}
15
	public void setName(String name) {
19
	public void setValue(String value) {
16
		this.name = name;
20
		this.value = value;
17
	}
21
	}
18
	public Object getData() {
22
	public 
19
		return data;
20
	}
21
	public void setData(Object data) {
22
		this.data = data
23
String asString() {
23
;
24
		return value;
24
	
25
	
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