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 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;
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/A.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class MyInterfaceImpl implements MyInterface {
1
public class A {
2
	private Long id;
2
	private String key1;
3
	private String name;
3
	private String key2;
4
	private 
4
	private String name;
5

5
E forward;
6
	
7
	/**
8
	 * Returns the id.
9
	 * @return Long
10
	 */
11
	public Long getId() {
12
		return id;
13
	}
14
	
15
	/**
16
	 * Returns the name.
17
	 * @return String
18
	 */
6
	public String getKey1() {
19
	public String getName() {
7
		return key1;
20
		return 
8
	}
9

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

30
id = id;
31
	}
32
	
33
	/**
34
	 * Sets the name.
35
	 * @param name The name to set
36
	 */
17
	public void setKey2(String key2) {
37
	public void setName(String name) {
18
		this.key2 = key2;
38
		this.
19
	}
20
	public String getName
39
name = name;
40
	}
41
	
21
() {
42
	public E getForward() {
22
		return name;
43
		return 
23
	}
24

44
forward;
45
	}
25
	public void setName(String name) {
46
	public void setForward(E e) {
26
		this.name = name;
47
		forward = e;
27
	
48
	
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