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 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/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/cut/Transaction.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Item {
1
public class 
2
    
2
Transaction {
3
private Long id;
3
	private Long id;
4
    private String name;
4
	private String 
5
    private String description;
6
    
5
description;
6
	private MonetoryAmount value;
7
	
7
public String getDescription() {
8
	public String getDescription() {
8
        return description;
9
		return description;
9
    }
10
    
10
	}
11
	
11
public void setDescription(String description) {
12
	public void setDescription(String description) {
12
        this.description = description;
13
		this.description = description;
13
    }
14
    
14
	}
15
	
15
public Long getId() {
16
	public Long getId() {
16
        return id;
17
		return id;
17
    }
18
    
18
	}
19
	
19
public void setId(Long id) {
20
	public void setId(Long id) {
20
        this.id = id;
21
		this.id = id;
21
    }
22
    public String getName() {
23
        return name;
24
    }
25
    public void setName(String name) {
26
        
22
	}
23
	
24
	public MonetoryAmount getValue() {
25
		return value;
26
	}
27
	
28
	public void setValue(MonetoryAmount value) {
27
this.name = name
29
		this.value = 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