public class Circular { private String id; private Class clazz; private Circular other; private Object anyEntity; /** * Constructor for Circular. */ public Circular() { super(); } /** * Returns the clazz. * @return Class */ public Class getClazz() { return clazz; } /** * Returns the id. * @return String */ public String getId() { return id; } /** * Sets the clazz. * @param clazz The clazz to set */ public void setClazz(Class clazz) { this.clazz = clazz; } /** * Sets the id. * @param id The id to set */ public void setId(String id) { this.id = id; } /** * Returns the other. * @return Circular */ public Circular getOther() { return other; } /** * Sets the other. * @param other The other to set */ public void setOther(Circular other) { this.other = other; } /** * Returns the anyEntity. * @return Object */ public Object getAnyEntity() { return anyEntity; } /** * Sets the anyEntity. * @param anyEntity The anyEntity to set */ public void setAnyEntity(Object anyEntity) { this.anyEntity = anyEntity;
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/Circular.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 Circular {
1
public class 
2
	
3
	
2
Event {
4
private String id;
3
    private Long id;
5
	private Class clazz;
6
	private Circular other;
7
	private Object anyEntity;
8
	
9
	/**
10
	 * Constructor for Circular.
11
	 */
12
	public Circular() {
13
		super();
14
	}
15
	
16
	/**
17
	 * Returns the clazz.
18
	 * @return Class
19
	 */
20
	public Class getClazz() {
21
		return clazz;
22
	}
23
	
24
	/**
25
	 * Returns the id.
26
	 * @return String
27
	 */
28
	public String getId() {
29
		return id;
30
	}
31
	
32
	/**
33
	 * Sets the clazz.
34
	 * @param clazz The clazz to set
35
	 */
36
	public void setClazz(Class clazz) {
37
		this.clazz = clazz;
38
	}
39
	
40
	/**
41
	 * Sets the id.
42
	 * @param id The id to set
43
	 */
44
	public void setId(String id) {
45
		
4
    private String title;
5
    private Date date;
6
    public Event() {}
7
    public Long getId() {
8
        return id;
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) {
46
this.id = id;
17
        this.
47
	}
48
	
49
	/**
50
	 * Returns the other.
51
	 * @return Circular
52
	 */
53
	public Circular getOther() {
54
		return other;
55
	}
56
	
57
	/**
58
	 * Sets the other.
59
	 * @param other The other to set
60
	 */
61
	public void setOther(Circular other) {
62
		this.other = other;
63
	}
64
	
65
	/**
66
	 * Returns the anyEntity.
67
	 * @return Object
68
	 */
69
	public Object getAnyEntity() {
70
		return anyEntity;
71
	}
72
	
73
	/**
74
	 * Sets the anyEntity.
75
	 * @param anyEntity The anyEntity to set
76
	 */
77
	public void setAnyEntity(Object anyEntity) {
78
		this.anyEntity = anyEntity;
79
	
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();
28
    public Set getParticipants() {
29
        return participants;
30
    }
31
    public void setParticipants(Set participants) {
32
        this.participants = participants;
33
    
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