public class Parent { private Long id; private String name; private Collection children = new HashSet(); Parent() {} public Parent(String name) { this.name = name; } /** * @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 Parent { private Long id; private String name; private ParentInfo info; public Parent() { } public Parent(String name) { this.name = name; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public ParentInfo getInfo() { return info; } public void setInfo(ParentInfo info) { this.info = info
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/compositeelement/Parent.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/jpa/cascade/Parent.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Parent {
1
public class Parent {
2
	private Long id;
2
	private Long id;
3
	private String name;
3
	private String name;
4
	private Collection children = new HashSet();
4
	private 
5
	
5
ParentInfo info;
6
Parent() {}
6
	public Parent() {
7
	}
8

7
	public Parent(String name) {
9
	public Parent(String name) {
8
		this.name = name;
10
		this.name = name;
9
	}
11
	}
10
	/**
11
	 * @return Returns the children.
12
	 */
12

13
	public Collection getChildren() {
13
	public Long getId() {
14
		return children;
14
		return 
15
	}
16
	/**
17
	 * @param children The children to set.
18
	 */
19
	public void setChildren(Collection children
15
id;
16
	}
20
) {
17
	public void setId(Long id) {
21
		this.children = children;
18
		this.
22
	}
23
	/**
24
	 * @return Returns the id.
25
	 */
19
id = id;
20
	}
21

26
	public Long getId() {
22
	public String getName() {
27
		return id;
23
		return 
28
	}
29
	/**
30
	 * @param id The id to set.
31
	 */
24
name;
25
	}
26

32
	public void setId(Long id) {
27
	public void setName(String name) {
33
		this.id = id;
28
		this.
34
	}
35
	/**
36
	 * @return Returns the name.
37
	 */
38
	public String getName
29
name = name;
30
	}
39
() {
31
	public ParentInfo getInfo() {
40
		return name;
32
		return 
41
	}
42
	/**
43
	 * @param name The name to set.
44
	 */
45
	public void setName(String name
33
info;
34
	}
46
) {
35
	public void setInfo(ParentInfo info) {
47
		this.name = name
36
		this.info = info
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