public class Car implements java.io.Serializable { private long id; private String model; private CarType carType; private Set carParts = new HashSet(); /** * @return Returns the carType. */ public CarType getCarType() { return carType; } /** * @param carType The carType to set. */ public void setCarType(CarType carType) { this.carType = carType; } /** * @return Returns the id. */ public long getId() { return id; } /** * @param id The id to set. */ public void setId(long id) { this.id = id; } /** * @return Returns the model. */ public String getModel() { return model; } /** * @param model The model to set. */ public void setModel(String model) { this.model = model; } public Set getCarParts() { return carParts; } public void setCarParts(Set carParts) { this.carParts = carParts
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/dom4j/many2one/Car.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 Car implements java.io.Serializable {
1
public class 
2
	
2
Event {
3
private long id;
3
    private Long id;
4
	
5
private String model;
4
    private String 
6
	
5
title;
7
private CarType carType;
6
    private 
8
	private Set carParts = new HashSet();
9
	
10
	/**
11
	 * @return Returns the carType.
12
	 */
13
	public CarType getCarType() {
14
		return carType;
15
	}
16
	/**
17
	 * @param carType The carType to set.
18
	 */
19
	public void setCarType(CarType carType) {
20
		this.carType = carType;
21
	}
22
	/**
23
	 * @return Returns the id.
24
	 */
25
	public long getId() {
26
		return id;
27
	}
28
	/**
29
	 * @param id The id to set.
30
	 */
31
	public void setId(long id) {
32
		
7
Date date;
8
    public Event() {}
9
    public Long getId() {
10
        return id;
11
    }
12
    private void setId(Long id) {
13
        this.id = id;
14
    }
15
    public Date getDate() {
16
        return date;
17
    }
18
    public void setDate(Date date) {
33
this.id = id;
19
        this.
34
	}
35
	/**
36
	 * @return Returns the model.
37
	 */
38
	public String getModel() {
39
		return model;
40
	}
41
	/**
42
	 * @param model The model to set.
43
	 */
44
	
20
date = date;
21
    }
22
    public String getTitle() {
23
        return title;
24
    }
45
public void setModel(String model) {
25
    public void setTitle(String 
46
		this.model = model;
47
	}
48
	
26
title) {
27
        this.title = title;
28
    }
29
    
30
    private Set participants = new HashSet();
49
public Set getCarParts() {
31
    public Set getPart
50
		
32
icipants() {
51
return carParts;
33
        return par
52
	}
53
	
34
ticipants;
35
    }
54
public void setCarParts(Set carParts) {
36
    public void setParticipants(Set par
55
		
37
ticipants) {
56
this.carParts = carParts
38
        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