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 Single implements Serializable { private String id; private String prop; private String string; private Collection several = new HashSet(); /** * Returns the id. * @return String */ public String getId() { return id; } /** * Returns the prop. * @return String */ public String getProp() { return prop; } /** * Returns the several. * @return Set */ public Collection getSeveral() { return several; } /** * 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 several. * @param several The several to set */ public void setSeveral(Collection several) { this.several = several; } /** * 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
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/Single.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 Single implements Serializable {
2
	private long id;
2
	private String id;
3
	private String model;
3
	private String prop;
4
	private CarType carType;
4
	private 
5
	private Set carParts
5
String string;
6
 = new HashSet();
6
	private Collection several = new HashSet();
7
	
7
	
8
	/**
8
/**
9
	 * @return Returns the carType.
9
	 * Returns the 
10
	 */
11
	public CarType getCarType
10
id.
11
	 * @return String
12
	 */
12
() {
13
	public String getId() {
13
		return carType;
14
		return id;
14
	}
15
	}
15
	
16
	
16
/**
17
	/**
17
	 * @param carType The carType to set.
18
	 * 
18
	 */
19
	public void setCarType(CarType carType) {
20
		this.carType = carType
19
Returns the prop.
20
	 * @return String
21
	 */
22
	public String getProp() {
21
;
23
		return prop;
22
	}
24
	}
23
	
25
	
24
/**
26
	/**
25
	 * @return Returns the id.
27
	 * Returns the several.
28
	 * @return Set
26
	 */
29
	 */
27
	public long getId() {
30
	public Collection getSeveral() {
28
		return id;
31
		return several;
29
	}
32
	}
30
	
33
	
31
/**
34
	/**
32
	
35
	 * Sets the id.
33
 * @param id The id to set.
36
	 * @param id The id to set
34
	 */
37
	 */
35
	public void setId(long id) {
38
	public void setId(String id) {
36
		this.id = id;
39
		this.id = id;
37
	}
40
	}
38
	
41
	
39
/**
42
	/**
40
	 * @return Returns the model.
43
	 * Sets the prop.
44
	 * @param prop The prop to set
41
	 */
45
	 */
42
	public String getModel() {
46
	public 
43
		return model
47
void setProp(String prop) {
44
;
48
		this.prop = prop;
45
	}
49
	}
46
	
50
	
47
/**
51
	/**
48
	
52
	 * Sets the several.
49
 * @param model The model to set.
53
	 * @param several The several to set
50
	 */
54
	 */
51
	public void setModel(String model) {
55
	public void setSeveral(Collection several) {
52
		this.model = model;
56
		this.
53
	}
57
several = several;
58
	}
59
	
60
	/**
61
	 * Returns the string.
62
	 * @return String
63
	 */
54
	public Set getCarParts() {
64
	public S
55
		return carParts;
56
	}
65
tring getString() {
66
		return string;
67
	}
68
	
69
	/**
70
	 * Sets the string.
71
	 * @param string The string to set
72
	 */
57
	public void setCarParts(Set carParts) {
73
	public void setString(String string) {
58
		this.carParts = carParts
74
		this.string = string
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