public class MyInterfaceImpl implements MyInterface { private String key1; private String key2; private String name; public String getKey1() { return key1; } public void setKey1(String key1) { this.key1 = key1; } public String getKey2() { return key2; } public void setKey2(String key2) { this.key2 = key2; } public String getName() { return name; } public void setName(String name) { this.name = name
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/abstractembeddedcomponents/cid/MyInterfaceImpl.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 MyInterfaceImpl implements MyInterface {
1
public class Y {
2
	private Long id;
2
	private String key1;
3
	private String x;
3
	private String key2;
4
	private 
4
	private String name;
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 getKey1() {
17
	public String getX() {
7
		return key1;
18
		return 
8
	}
9

19
x;
20
	}
21
	/**
22
	 * Sets the id.
23
	 * @param id The id to set
24
	 */
10
	public void setKey1(String key1) {
25
	public void setId(Long id) {
11
		this.key1 = key1;
26
		this.
12
	}
13
	public String getKey2() {
14
		return key2;
15
	}
16

27
id = id;
28
	}
29
	/**
30
	 * Sets the x.
31
	 * @param x The x to set
32
	 */
17
	public void setKey2(String key2) {
33
	public void setX(String x) {
18
		this.key2 = key2;
34
		this.
19
	}
20

35
x = x;
36
	}
37
	/**
38
	 * @return
39
	 */
21
	public String getName() {
40
	public X getTheX() {
22
		return name;
41
		return 
23
	}
24

42
theX;
43
	}
44
	/**
45
	 * @param x
46
	 */
25
	public void setName(String name) {
47
	public void setTheX(X x) {
26
		this.name = name
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