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 Several implements Serializable { private String id; private String prop; private Single single; private String string; /** * Returns the id. * @return String */ public String getId() { return id; } /** * Returns the prop. * @return String */ public String getProp() { return prop; } /** * Returns the single. * @return Single */ public Single getSingle() { return single; } /** * 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 single. * @param single The single to set */ public void setSingle(Single single) { this.single = single; } /** * 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/Several.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 Several 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 = new HashSet();
6
	
5
Single single;
6
	private String string;
7
	/**
7
	/**
8
	 * @return Returns the carType.
8
	 * Return
9
	 */
10
	public CarType getCarType
9
s the id.
10
	 * @return String
11
	 */
11
() {
12
	public String getId() {
12
		return carType;
13
		return id;
13
	}
14
	}
14
	
15
	
15
/**
16
	/**
16
	 * @param carType The carType to set.
17
	 * 
17
	 */
18
	public void setCarType(CarType carType) {
19
		this.carType = carType
18
Returns the prop.
19
	 * @return String
20
	 */
21
	public String getProp() {
20
;
22
		return prop;
21
	}
23
	}
22
	
24
	
23
/**
25
	/**
24
	 * @return Returns the id.
26
	 * Returns the 
25
	 */
26
	public long getId
27
single.
28
	 * @return Single
29
	 */
27
() {
30
	public Single getSingle() {
28
		return id;
31
		return single;
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 single.
49
 * @param model The model to set.
53
	 * @param single The single to set
50
	 */
54
	 */
51
	public void setModel(String model) {
55
	public void set
52
		this.model = model;
53
	}
56
Single(Single single) {
57
		this.single = single;
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;
59
	
75
	
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