public class Document { private Long id; private String location; private User owner; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getLocation() { return location; } public void setLocation(String location) { this.location = location; } public User getOwner() { return owner; } public void setOwner(User owner) { this.owner = owner
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/component/cascading/toone/Document.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 Document {
1
public class A {
2
	private Long id;
2
	private Long id;
3
	private String location;
3
	private String 
4
	private User owner;
5

4
name;
5
	private E forward;
6
	
7
	/**
8
	 * Returns the id.
9
	 * @return Long
10
	 */
6
	public Long getId() {
11
	public Long getId() {
7
		return id;
12
		return id;
8
	}
13
	}
9

14
	
15
	/**
16
	 * Returns the name.
17
	 * @return String
18
	 */
19
	public String getName() {
20
		return name;
21
	}
22
	
23
	/**
24
	 * Sets the id.
25
	 * @param id The id to set
26
	 */
10
	public void setId(Long id) {
27
	public void setId(Long id) {
11
		this.id = id;
28
		this.id = id;
12
	}
29
	}
13
	public String getLocation() {
14
		return location;
15
	}
16

30
	
31
	/**
32
	 * Sets the name.
33
	 * @param name The name to set
34
	 */
17
	public void setLocation(String location) {
35
	public void setName(String name) {
18
		this.location = location;
36
		this.
19
	}
20

37
name = name;
38
	}
39
	
21
	public User getOwner() {
40
	public E getForward() {
22
		return owner;
41
		return 
23
	}
24

42
forward;
43
	}
25
	public void setOwner(User owner) {
44
	public void setForward(E e) {
26
		this.owner = owner
45
		forward = e
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