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;
public class Transaction { private Long id; private String description; private MonetoryAmount value; 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 MonetoryAmount getValue() { return value; } public void setValue(MonetoryAmount value) { this.value = 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/StringPropertyValue.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/cut/Transaction.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class StringPropertyValue implements PropertyValue {
1
public class Transaction {
2
	private Long id;
2
	private Long id;
3
	private String 
3
	private String description;
4
value;
4
	private MonetoryAmount value;
5

5
	
6
	public StringPropertyValue() {
6
	public String
7
	}
8
	public StringPropertyValue(String value
7
 getDescription() {
8
		return description;
9
	}
10
	
9
) {
11
	public void setDescription(String description) {
10
		this.value = value;
12
		this.
11
	}
12

13
description = description;
14
	}
15
	
13
	public Long getId() {
16
	public Long getId() {
14
		return id;
17
		return id;
15
	}
18
	}
16

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

23
	
21
	public String getValue() {
24
	public MonetoryAmount getValue() {
22
		return value;
25
		return value;
23
	}
26
	}
24

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