public class ComponentCollection implements Serializable { private String str; private List foos; private List floats; public List getFoos() { return foos; } public String getStr() { return str; } public void setFoos(List list) { foos = list; } public void setStr(String string) { str = string; } public List getFloats() { return floats; } public void setFloats(List list) { floats = list
public class Y { private Long id; private String x; private X theX; /** * Returns the id. * @return Long */ public Long getId() { return id; } /** * Returns the x. * @return String */ public String getX() { return x; } /** * Sets the id. * @param id The id to set */ public void setId(Long id) { this.id = id; } /** * Sets the x. * @param x The x to set */ public void setX(String x) { this.x = x; } /** * @return */ public X getTheX() { return theX; } /** * @param x */ public void setTheX(X x) { theX = x
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/ComponentCollection.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/Y.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class ComponentCollecti
1
public class Y {
2
on implements Serializable {
2
	private Long id;
3
	private String str;
3
	private String x;
4
	private List foos;
4
	private 
5
	private List floats;
5
X theX;
6
	/**
7
	 * Returns the id.
8
	 * @return Long
9
	 */
6
	public List getFoos() {
10
	public Long getId() {
7
		return foos;
11
		return id;
8
	}
12
	}
13
	/**
14
	 * Returns the x.
15
	 * @return String
16
	 */
9
	public String getStr() {
17
	public String getX() {
10
		return str;
18
		return 
11
	}
19
x;
20
	}
21
	/**
22
	 * Sets the id.
23
	 * @param id The id to set
24
	 */
12
	public void setFoos(List list) {
25
	public void set
13
		foos = list;
14
	}
26
Id(Long id) {
27
		this.id = id;
28
	}
29
	/**
30
	 * Sets the x.
31
	 * @param x The x to set
32
	 */
15
	public void setStr(String string) {
33
	public void setX(String 
16
		str = string;
17
	}
18
	public List getFloats
34
x) {
35
		this.x = x;
36
	}
37
	/**
38
	 * @return
39
	 */
19
() {
40
	public X getTheX() {
20
		return floats;
41
		return theX;
21
	}
42
	}
22
	public void setFloats(List list) {
43
	
23
		floats = list
44
/**
45
	 * @param x
46
	 */
47
	public void setTheX(X x) {
48
		theX = x
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