public class Item { private Long id; private String name; private String description; public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } 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 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/testing/src/main/java/org/hibernate/test/cache/Item.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 Item {
1
public class StringPropertyValue implements PropertyValue {
2
	private Long id;
2
	private Long id;
3
	private String name;
3
	private String 
4
	private String description;
5
	
6
	public String getDescription() {
7
		return description;
8
	}
9
	public void setDescription(String description
4
value;
5
	public StringPropertyValue() {
6
	}
10
) {
7
	public StringPropertyValue(String value) {
11
		this.description = description;
8
		this.
12
	}
9
value = value;
10
	}
11

13
	public Long getId() {
12
	public Long getId() {
14
		return id;
13
		return id;
15
	}
14
	}
15

16
	public void setId(Long id) {
16
	public void setId(Long id) {
17
		this.id = id;
17
		this.id = id;
18
	}
18
	}
19

19
	public String getName() {
20
	public String getValue() {
20
		return name;
21
		return value;
21
	}
22
	}
23

22
	public void setName(String name) {
24
	public void setValue(String value) {
23
		this.name = nam
25
		this.value = value;
26
	}
27
	public String asString() {
24
e
28
		return value
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