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