public class C2 extends B { private String address; private C1 c1; private String c2Name; private Collection c1s = new ArrayList(); /** * Returns the address. * @return String */ public String getAddress() { return address; } /** * Sets the address. * @param address The address to set */ public void setAddress(String address) { this.address = address; } /** * @return Returns the c. */ public C1 getC1() { return c1; } /** * @param c The c to set. */ public void setC1(C1 c) { this.c1 = c; } /** * @return Returns the cs. */ public Collection getC1s() { return c1s; } /** * @param cs The cs to set. */ public void setC1s(Collection cs) { this.c1s = cs; } public String getC2Name() { return c2Name; } public void setC2Name(String name) { c2Name = name;
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/C2.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 C2 extends B {
1
public class 
2
	
2
Event {
3
private String address;
3
    private 
4
	private C1 c1;
5
	
4
Long id;
6
private String c2Name;
5
    private String 
7
	private Collection c1s = new ArrayList();
8
	/**
9
	 * Returns the address.
10
	 * @return String
11
	 */
12
	
6
title;
7
    private Date date;
8
    public Event() {}
13
public String getAddress() {
9
    public Long get
14
		return address;
15
	}
16
	
17
	/**
18
	 * Sets the address.
19
	 * @param address The address to set
20
	 */
21
	public void setAddress(String address) {
22
		this.address = address;
23
	}
24
	
25
	/**
26
	 * @return Returns the c.
27
	 */
28
	public C1 getC1() {
29
		return c1;
30
	}
31
	/**
32
	 * @param c The c to set.
33
	 */
34
	public void setC1(C1 c) {
35
		this.c1 = c;
36
	}
37
	/**
38
	 * @return Returns the cs.
39
	 */
40
	public Collection getC1s() {
41
		return c1s;
42
	}
43
	/**
44
	 * @param cs The cs to set.
45
	 */
46
	public void setC1s(Collection cs) {
47
		this.c1s = cs;
48
	}
49
	
10
Id() {
11
        return id;
12
    }
13
    private void setId(Long id) {
14
        this.id = id;
15
    }
16
    public Date getDate() {
17
        return date;
18
    }
19
    public void setDate(Date date) {
20
        this.date = date;
21
    }
22
    public String getTitle() {
23
        return title;
24
    }
25
    public void setTitle(String title) {
26
        this.title = title;
27
    }
28
    
29
    private Set participants = new HashSet();
50
public String getC2Name() {
30
    public S
51
		return c2Name;
52
	}
53
	
31
et getParticipants() {
32
        return participants;
33
    }
54
public void setC2Name(String name) {
34
    public void set
55
		c2Name = name;
56
	
35
Participants(Set participants) {
36
        this.participants = participants;
37
    
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