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 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
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/testsuite/src/test/java/org/hibernate/test/legacy/Circular.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 Circular {
2
	
2
	private long id;
3
	private String id;
3
	private String model;
4
	private 
4
	private CarType carType
5
Class clazz;
5
;
6
	private Circular other;
6
	private Set carParts = new HashSet
7
	private Object anyEntity;
8
	
9
	/**
10
	 * Constructor for Circular.
11
	 */
12
	public Circular() {
7
();
13
		super();
8
	
14
	}
15
	
9
	/**
16
	/**
10
	 * @return Returns the carType.
17
	 * Returns the clazz.
18
	 * @return Class
11
	 */
19
	 */
12
	public CarType getCarType() {
20
	public C
13
		return carType
21
lass getClazz() {
22
		return clazz;
23
	}
24
	
25
	/**
26
	 * Returns the id.
27
	 * @return String
28
	 */
29
	public String getId() {
14
;
30
		return id;
15
	}
31
	}
16
	
32
	
17
/**
33
	/**
18
	
34
	 * Sets the clazz.
19
 * @param carType The carType to set.
35
	 * @param clazz The clazz to set
20
	 */
36
	 */
21
	public void setCarType(CarType carType) {
37
	public void setClazz(Class clazz) {
22
		this.carType = carType;
38
		this.clazz = clazz;
23
	}
39
	}
24
	
40
	
25
/**
41
	/**
26
	 * @return Returns the id.
42
	 * 
27
	 */
28
	public long getId() {
29
		return id;
30
	}
31
	/**
43
Sets the id.
32
	 * @param id The id to set.
44
	 * @param id The id to set
33
	 */
45
	 */
34
	public void setId(long id) {
46
	public void setId(String id) {
35
		this.id = id;
47
		this.id = id;
36
	}
48
	}
37
	
49
	
38
/**
50
	/**
39
	 * @return Returns the model.
51
	 * Returns the other.
52
	 * @return Circular
40
	 */
53
	 */
41
	public String getModel() {
54
	public Circular getOther() {
42
		return model;
55
		return other;
43
	}
56
	}
44
	
57
	
45
/**
58
	/**
46
	
59
	 * Sets the other.
47
 * @param model The model to set.
60
	 * @param other The other to set
48
	 */
61
	 */
49
	public void setModel(String model) {
62
	public void setOther(Circular other) {
50
		this.model = model;
63
		this.
51
	}
52
	public Set getCarParts() {
53
		return carParts;
54
	}
64
other = other;
65
	}
66
	
67
	/**
68
	 * Returns the anyEntity.
69
	 * @return Object
70
	 */
71
	public Object getAnyEntity() {
72
		return anyEntity;
73
	}
74
	
75
	/**
76
	 * Sets the anyEntity.
77
	 * @param anyEntity The anyEntity to set
78
	 */
55
	public void setCarParts(Set carParts) {
79
	public void setAnyEntity(Object anyEntity) {
56
		this.carParts = carParts
80
		this.anyEntity = anyEntity
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