public class Immutable { private String foo; private String bar; private String id; public String getFoo() { return foo; } public void setFoo(String foo) { this.foo = foo; } public String getBar() { return bar; } public void setBar(String bar) { this.bar = bar; } public String getId() { return id; } public void setId(String id) { this.id = id;
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/Immutable.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 Immutable {
1
public class Y {
2
	private String foo;
2
	private Long id;
3
	private String bar;
3
	private String x;
4
	private String id;
4
	private 
5
	
5
X theX;
6
	/**
7
	 * Returns the id.
8
	 * @return Long
9
	 */
10
	public Long getId() {
11
		return id;
12
	}
13
	/**
14
	 * Returns the x.
15
	 * @return String
16
	 */
6
	public String getFoo() {
17
	public String getX() {
7
		return foo;
18
		return x;
8
	}
19
	}
9
	
20
	/**
21
	 * Sets the id.
22
	 * @param id The id to set
23
	 */
10
	public void setFoo(String foo) {
24
	public void setId(Long id) {
11
		this.foo = foo;
25
		this.
12
	}
13
	
14
	public String getBar() {
15
		return bar;
16
	}
17
	
26
id = id;
27
	}
28
	/**
29
	 * Sets the x.
30
	 * @param x The x to set
31
	 */
18
	public void setBar(String bar) {
32
	public void setX(String x) {
19
		this.bar = bar;
33
		this.
20
	}
21
	
22
	public String getId
34
x = x;
35
	}
36
	/**
37
	 * @return
38
	 */
23
() {
39
	public X getTheX() {
24
		return id;
40
		return theX;
25
	}
41
	}
26
	
42
	/**
43
	 * @param x
44
	 */
27
	public void setId(String id) {
45
	public void setTheX(X x) {
28
		this.id = id;
46
		theX = x;
29
	
47
	
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