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 Suite { private Long id; private String location; private Set notes = new HashSet(); public Suite() { } public Suite(String location) { this.location = location; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getLocation() { return location; } public void setLocation(String location) { this.location = location; } public Set getNotes() { return notes; } public void setNotes(Set notes) { this.notes = notes;
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/deletetransient/Suite.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Parent {
1
public class Suite {
2
	private Long id;
2
	private Long id;
3
	private String name;
3
	private String 
4
	private Collection children = new HashSet();
5
	Parent() {}
4
location;
5
	private Set notes = new HashSet();
6
	public Suite() {
7
	}
8

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

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

25
	public Long getId() {
23
	public String getLocation() {
26
		return id;
24
		return 
27
	}
28
	/**
29
	 * @param id The id to set.
30
	 */
31
	public void setId(Long id
25
location;
26
	}
32
) {
27
	public void setLocation(String location) {
33
		this.id = id;
28
		this.
34
	}
35
	/**
36
	 * @return Returns the name.
37
	 */
29
location = location;
30
	}
31

38
	public String getName() {
32
	public Set getNotes() {
39
		return name;
33
		return n
40
	}
41
	/**
42
	 * @param name The name to set.
43
	 */
34
otes;
35
	}
36

44
	public void setName(String name) {
37
	public void setNotes(Set notes) {
45
		this.name = name;
38
		this.notes = notes;
46
	
39
	
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