public class BagOwner { private String name; private BagOwner parent; private List children = new ArrayList(); public BagOwner() { } public BagOwner(String name) { this.name = name; } public String getName() { return name; } public void setName(String name) { this.name = name; } public BagOwner getParent() { return parent; } public void setParent(BagOwner parent) { this.parent = parent; } public List getChildren() { return children; } public void setChildren(List children) { this.children = children
public class Organization { private long id; private String name; private Collection employments; public Organization(String name) { this.name = name; employments = new HashSet(); } public Organization() {} /** * @return Returns the employments. */ public Collection getEmployments() { return employments; } /** * @param employments The employments to set. */ public void setEmployments(Collection employments) { this.employments = employments; } /** * @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/collection/bag/BagOwner.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/sql/hand/Organization.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class BagOwner {
1
public class Organization {
2
	private long id;
2
	private String name;
3
	private String name;
3
	private BagOwner parent;
4
	private 
4
	private List children = new ArrayList();
5
	public BagOwner() {
6
	}
7
	public BagOwner(String name) {
8
		this.name = name;
9
	}
10
	public String getName
5
Collection employments;
6
	public Organization(String name) {
7
		this.name = name;
8
		employments = new HashSet();
9
	}
10
	public Organization() {}
11
	/**
12
	 * @return Returns the employments.
13
	 */
11
() {
14
	public Collection getEmployments() {
12
		return name;
15
		return 
13
	}
14
	public void setName(String name
16
employments;
17
	}
18
	/**
19
	 * @param employments The employments to set.
20
	 */
15
) {
21
	public void setEmployments(Collection employments) {
16
		this.name = name;
22
		this.
17
	}
18
	public BagOwner getParent
23
employments = employments;
24
	}
25
	/**
26
	 * @return Returns the id.
27
	 */
19
() {
28
	public long getId() {
20
		return parent;
29
		return 
21
	}
22
	public void setParent(BagOwner parent
30
id;
31
	}
32
	/**
33
	 * @param id The id to set.
34
	 */
23
) {
35
	public void setId(long id) {
24
		this.parent = parent;
36
		this.
25
	}
26
	public List getChildren
37
id = id;
38
	}
39
	/**
40
	 * @return Returns the name.
41
	 */
27
() {
42
	public String getName() {
28
		return children;
43
		return 
29
	}
30
	public void setChildren(List children
44
name;
45
	}
46
	/**
47
	 * @param name The name to set.
48
	 */
31
) {
49
	public void setName(String name) {
32
		this.children = children
50
		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