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