public class Valuation { private Long id; private Stock stock; private Date valuationDate; private Double value; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Stock getStock() { return stock; } public void setStock(Stock stock) { this.stock = stock; } public Date getValuationDate() { return valuationDate; } public void setValuationDate(Date valuationDate) { this.valuationDate = valuationDate; } public Double getValue() { return value; } public void setValue(Double value) { this.value = value
public class Event { private Long id; private String title; private Date date; public Event() {} public Long getId() { return id; } private void setId(Long id) { this.id = id; } public Date getDate() { return date; } public void setDate(Date date) { this.date = date; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } private Set participants = new HashSet(); public Set getParticipants() { return participants; } public void setParticipants(Set participants) { this.participants = participants
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/entitymode/multi/Valuation.java File path: /hibernate-distribution-3.3.2.GA/project/tutorials/web/src/main/java/org/hibernate/tutorial/domain/Event.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Valuation {
1
public class 
2
	
2
Event {
3
private Long id;
3
    private Long id;
4
	
5
private Stock stock;
4
    private St
6
	private Date valuationDate;
7
	private Double value;
8
	
5
ring title;
6
    private Date date;
7
    public Event() {}
9
public Long getId() {
8
    public Long getId() {
10
		return id;
9
        return id;
11
	}
12
	public
10
    }
13
 void setId(Long id) {
11
    private void setId(Long id) {
14
		this.id = id;
12
        this.id = id;
15
	}
16
	
13
    }
17
public Stock getStock() {
14
    public 
18
		return stock;
19
	}
20
	public void setStock(Stock stock) {
21
		this.stock = stock;
22
	}
23
	public Date getValuationDate() {
24
		return valuationDate;
25
	}
26
	public void setValuationDate(Date valuationDate) {
27
		this.valuationDate = valuationDate;
28
	}
29
	
15
Date getDate() {
16
        return date;
17
    }
18
    public void setDate(Date date) {
19
        this.date = date;
20
    }
21
    public String getTitle() {
22
        return title;
23
    }
24
    public void setTitle(String title) {
25
        this.title = title;
26
    }
27
    
28
    private Set participants = new HashSet();
30
public Double getValue() {
29
    public 
31
		return value;
32
	}
33
	public void setValue(Double value) {
34
		this.value = value
30
Set getParticipants() {
31
        return participants;
32
    }
33
    public void setParticipants(Set participants) {
34
        this.participants = participants
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