public class Single implements Serializable { private String id; private String prop; private String string; private Collection several = new HashSet(); /** * Returns the id. * @return String */ public String getId() { return id; } /** * Returns the prop. * @return String */ public String getProp() { return prop; } /** * Returns the several. * @return Set */ public Collection getSeveral() { return several; } /** * Sets the id. * @param id The id to set */ public void setId(String id) { this.id = id; } /** * Sets the prop. * @param prop The prop to set */ public void setProp(String prop) { this.prop = prop; } /** * Sets the several. * @param several The several to set */ public void setSeveral(Collection several) { this.several = several; } /** * Returns the string. * @return String */ public String getString() { return string; } /** * Sets the string. * @param string The string to set */ public void setString(String string) { this.string = string
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/legacy/Single.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 Single implements Serializable {
1
public class 
2
	
2
Event {
3
private String id;
3
    private Long id;
4
	private String prop;
5
	private String string;
6
	private Collection several = new HashSet();
7
	/**
8
	 * Returns the id.
9
	 * @return String
10
	 */
11
	
4
    private String title;
5
    private Date date;
6
    public Event() {}
12
public String getId() {
7
    public Long getId() {
13
		return id;
8
        return id;
14
	}
15
	
16
	/**
17
	 * Returns the prop.
18
	 * @return String
19
	 */
20
	public String getProp() {
21
		return prop;
22
	}
23
	
24
	/**
25
	 * Returns the several.
26
	 * @return Set
27
	 */
28
	public Collection getSeveral() {
29
		return several;
30
	}
31
	
32
	/**
33
	 * Sets the id.
34
	 * @param id The id to set
35
	 */
36
	public void setId(String id) {
37
		
9
    }
10
    private void setId(Long id) {
11
        this.id = id;
12
    }
13
    public Date getDate() {
14
        return date;
15
    }
16
    public void setDate(Date date) {
38
this.id = id;
17
        this.
39
	}
40
	
41
	/**
42
	 * Sets the prop.
43
	 * @param prop The prop to set
44
	 */
45
	public void setProp(String prop) {
46
		this.prop = prop;
47
	}
48
	
49
	/**
50
	 * Sets the several.
51
	 * @param several The several to set
52
	 */
53
	public void setSeveral(Collection several) {
54
		this.several = several;
55
	}
56
	
57
	/**
58
	 * Returns the string.
59
	 * @return String
60
	 */
61
	
18
date = date;
19
    }
20
    public String getTitle() {
21
        return title;
22
    }
23
    public void setTitle(String title) {
24
        this.title = title;
25
    }
26
    
27
    private Set participants = new HashSet();
62
public String getString() {
28
    public S
63
		return string;
64
	}
65
	
66
	/**
67
	 * Sets the string.
68
	 * @param string The string to set
69
	 */
70
	
29
et getParticipants() {
30
        return participants;
31
    }
71
public void setString(String string) {
32
    public void set
72
		this.string = string
33
Participants(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