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 Object2 { private Long id; private String dummy; private MainObject belongsToMainObj; public Long getId() { return id; } public void setId(Long l) { this.id = l; } public String getDummy() { return dummy; } public void setDummy(String string) { dummy = string; } public MainObject getBelongsToMainObj() { return belongsToMainObj; } public void setBelongsToMainObj(MainObject object) { belongsToMainObj = object
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/Object2.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class A {
1
public class Object2 {
2
	private Long id;
2
	private Long id;
3
	private String name;
3
	private String dummy;
4
	private E forward;
4
	private 
5
	
6
	/**
7
	 * Returns the id.
8
	 * @return Long
9
	 */
10
	public Long getId() {
11
		return id;
12
	}
13
	
14
	/**
15
	 * Returns the name.
16
	 * @return String
17
	 */
5
MainObject belongsToMainObj;
18
	public String getName() {
6
	public Long getId() {
19
		return name;
7
		return 
20
	}
21
	
22
	/**
23
	 * Sets the id.
8
id;
24
	 * @param id The id to set
9
	
25
	 */
10
}
26
	public void setId(Long id) {
11
	public void setId(Long l) {
27
		this.id = id;
12
		this.id = l;
28
	}
13
	}
29
	
14
	
30
	/**
15
	
31
	 * Sets the name.
32
	 * @param name The name to set
33
	 */
16
public String getDummy() {
17
		return dummy;
18
	}
34
	public void setName(String name) {
19
	public void setDummy(String 
35
		this.name = name
20
string) {
36
;
21
		dummy = string;
37
	}
22
	}
38
	
39
	public E getForward() {
23
	public 
40
		return forward;
41
	}
42
	public void setForward(E e) {
43
		forward = e
24
MainObject getBelongsToMainObj() {
25
		return belongsToMainObj;
26
	}
27
	public void setBelongsToMainObj(MainObject object) {
28
		belongsToMainObj = object
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