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;
public class Speech { private Integer id; private String name; private Double length; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public Double getLength() { return length; } public void setLength(Double length) { this.length = length; } public String getName() { return name; } public void setName(String name) { this.name = name;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/onetomany/Child.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/sql/hand/Speech.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Child {
1
public class Speech {
2
	private Long id;
2
	private Integer id;
3
	private String name;
3
	private String name;
4
	private Parent parent;
4
	private 
5
	/**
6
	 * @return Returns the id.
7
	 */
5
Double length;
6

8
	public Long getId() {
7
	public Integer getId() {
9
		return id;
8
		return id;
10
	}
9
	}
11
	/**
12
	 * @param id The id to set.
13
	 */
10

14
	public void setId(Long id) {
11
	public void setId(Integer id) {
15
		this.id = id;
12
		this.id = id;
16
	}
13
	}
17
	/**
18
	 * @return Returns the name.
19
	 */
14

20
	public String getName() {
15
	public Double getLength() {
21
		return name;
16
		return 
22
	}
23
	/**
24
	 * @param name The name to set.
25
	 */
26
	public void setName(String name
17
length;
18
	}
27
) {
19
	public void setLength(Double length) {
28
		this.name = name;
20
		this.
29
	}
30
	/**
31
	 * @return Returns the parent.
32
	 */
21
length = length;
22
	}
23

33
	public Parent getParent() {
24
	public String getName() {
34
		return parent;
25
		return 
35
	}
36
	/**
37
	 * @param parent The parent to set.
38
	 */
39
	public void setParent(Parent parent
26
name;
27
	}
40
) {
28
	public void setName(String name) {
41
		this.parent = parent;
29
		this.name = name;
42
	
30
	
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