public class Stock { private Long id; private String tradeSymbol; private Valuation currentValuation; private Set valuations = new HashSet(); public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getTradeSymbol() { return tradeSymbol; } public void setTradeSymbol(String tradeSymbol) { this.tradeSymbol = tradeSymbol; } public Valuation getCurrentValuation() { return currentValuation; } public void setCurrentValuation(Valuation currentValuation) { this.currentValuation = currentValuation; } public Set getValuations() { return valuations; } public void setValuations(Set valuations) { this.valuations = valuations;
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/Stock.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 Stock {
1
public class 
2
	
2
Event {
3
private Long id;
3
    private Long id;
4
	
5
private String tradeSymbol;
4
    private String t
6
	private Valuation currentValuation;
7
	private Set valuations = new HashSet();
8
	
5
itle;
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 String getTradeSymbol() {
14
    public 
18
		return tradeSymbol;
19
	}
20
	public void setTradeSymbol(String tradeSymbol) {
21
		this.tradeSymbol = tradeSymbol;
22
	}
23
	public Valuation getCurrentValuation() {
24
		return currentValuation;
25
	}
26
	public void setCurrentValuation(Valuation currentValuation) {
27
		this.currentValuation = currentValuation;
28
	}
29
	public Set getValuations() {
30
		return valuations;
31
	}
32
	
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();
29
    public Set getParticipants() {
30
        return participants;
31
    }
33
public void setValuations(Set valuations) {
32
    public void set
34
		this.valuations = valuations;
35
	
33
Participants(Set participants) {
34
        this.participants = participants;
35
    
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