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 Immutable { private String foo; private String bar; private String id; public String getFoo() { return foo; } public void setFoo(String foo) { this.foo = foo; } public String getBar() { return bar; } public void setBar(String bar) { this.bar = bar; } public String getId() { return id; } public void setId(String id) { this.id = id;
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/legacy/Immutable.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class StringPropertyValue implements PropertyValue {
1
public class Immutable {
2
	private Long id;
2
	private String foo;
3
	private String value;
3
	private String 
4
	public StringPropertyValue() {
5
	}
6
	public StringPropertyValue
4
bar;
5
	private String id;
6
	
7
	public String getFoo() {
8
		return foo;
9
	}
10
	
7
(String value) {
11
	public void setFoo(String foo) {
8
		this.value = value;
12
		this.
9
	}
10

13
foo = foo;
14
	}
15
	
11
	public Long getId() {
16
	public String getBar() {
12
		return id;
17
		return 
13
	}
14

18
bar;
19
	}
20
	
15
	public void setId(Long id) {
21
	public void setBar(String bar) {
16
		this.id = id;
22
		this.
17
	}
18

23
bar = bar;
24
	}
25
	
19
	public String getValue() {
26
	public String getId() {
20
		return value;
27
		return 
21
	}
22

28
id;
29
	}
30
	
23
	public void setValue(String value) {
31
	public void setId(String id) {
24
		this.value = value;
32
		this.
25
	}
26
	public String asString() {
27
		return value;
33
id = id;
28
	
34
	
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