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/cache-jbosscache2/src/test/java/org/hibernate/test/cache/jbc2/functional/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 
2
    
2
StringPropertyValue implements PropertyValue {
3
private Long id;
3
	private Long id;
4
    
5
private String name;
4
	private String 
6
    private String description;
7
    public String getDescription() {
8
        return description;
9
    }
10
    public void setDescription(String description) {
11
        this.description = description;
12
    }
13
    
5
value;
6
	public StringPropertyValue() {
7
	}
8
	public StringPropertyValue(String value) {
9
		this.value = value;
10
	}
14
public Long getId() {
11
	public Long getId() {
15
        
16
return id;
12
		return id;
17
    }
18
    
13
	}
19
public void setId(Long id) {
14
	public void setId(Long id) {
20
        
21
this.id = id;
15
		this.id = id;
22
    }
23
    
16
	}
24
public String getName() {
17
	public String getValue() {
25
        
26
return name;
18
		return 
27
    }
28
    
19
value;
20
	}
29
public void setName(String name) {
21
	public void setValue(String 
30
        
22
value) {
31
this.name = name;
23
		this.
32
    
24
value = value;
25
	}
26
	public String asString() {
27
		return value;
28
	
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