public class Parent { private Long id; private Set deleteOrphanChildren; private Set children; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Set getDeleteOrphanChildren() { return deleteOrphanChildren; } public void setDeleteOrphanChildren(Set deleteOrphanChildren) { this.deleteOrphanChildren = deleteOrphanChildren; } public Set getChildren() { return children; } public void setChildren(Set children) { this.children = children;
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;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/cascade/Parent.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/onetomany/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 Set deleteOrphanChildren;
3
	private S
4
	private Set
4
tring name;
5
	private Collection children = new HashSet();
6
	/**
5
 children;
7
	 * @return Returns the children
8
.
9
	 */
6
	public Long getId() {
10
	public Collection getChildren() {
7
		return id;
11
		return 
8
	}
9
	public void setId(Long id
12
children;
13
	}
14
	/**
15
	 * @param children The children to set.
16
	 */
10
) {
17
	public void setChildren(Collection children) {
11
		this.id = id;
18
		this.
12
	}
13
	public Set getDeleteOrphanChildren() {
14
		return deleteOrphanChildren;
15
	}
16
	public void setDeleteOrphanChildren(Set deleteOrphanChildren) {
17
		this.deleteOrphanChildren = deleteOrphanChildren;
18
	}
19
	public Set getChildren() {
20
		return children;
21
	}
19
children = children;
20
	}
21
	/**
22
	 * @return Returns the id.
23
	 */
24
	public Long getId() {
25
		return id;
26
	}
27
	/**
28
	 * @param id The id to set.
29
	 */
30
	public void setId(Long id) {
31
		this.id = id;
32
	}
33
	/**
34
	 * @return Returns the name.
35
	 */
36
	public String getName() {
37
		return name;
38
	}
39
	/**
40
	 * @param name The name to set.
41
	 */
22
	public void setChildren(Set children) {
42
	public void set
23
		this.children = children
43
Name(String name) {
24
;
44
		this.name = name;
25
	
45
	
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