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
4
value;
7
() {
5
	public StringPropertyValue() {
8
		return description;
6
	
9
	}
10
	public void setDescription(String description
7
}
11
) {
8
	public StringPropertyValue(String value) {
12
		this.description = description;
9
		this.
13
	}
10
value = value;
11
	}
12

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

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

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

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