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