public class Parent { private Long id; private String name; private Collection children = new HashSet(); /** * @return Returns the children. */ public Collection getChildren() { return children; } /** * @param children The children to set. */ public void setChildren(Collection children) { this.children = children; } /** * @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
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/Parent.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 Parent {
1
public class Speech {
2
	private Long id;
2
	private Integer id;
3
	private String name;
3
	private String name;
4
	private Collection children = new HashSet();
4
	private 
5
	/**
6
	 * @return Returns the children.
7
	 */
8
	public Collection getChildren
5
Double length;
9
() {
6
	public Integer getId() {
10
		return children;
7
		return 
11
	}
12
	/**
13
	 * @param children The children to set.
14
	 */
15
	public void setChildren(Collection children
8
id;
9
	}
16
) {
10
	public void setId(Integer id) {
17
		this.children = children;
11
		this.
18
	}
19
	/**
20
	 * @return Returns the id.
21
	 */
22
	public Long getId
12
id = id;
13
	}
23
() {
14
	public Double getLength() {
24
		return id;
15
		return 
25
	}
26
	/**
27
	 * @param id The id to set.
28
	 */
29
	public void setId(Long id
16
length;
17
	}
30
) {
18
	public void setLength(Double length) {
31
		this.id = id;
19
		this.
32
	}
33
	/**
34
	 * @return Returns the name.
35
	 */
20
length = length;
21
	}
22

36
	public String getName() {
23
	public String getName() {
37
		return name;
24
		return name;
38
	}
25
	}
39
	/**
40
	 * @param name The name to set.
41
	 */
26

42
	public void setName(String name) {
27
	public void setName(String name) {
43
		this.name = name
28
		this.name = name
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