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 Address { private Long id; private String info; private Set suites = new HashSet(); public Address() { } public Address(String info) { this.info = info; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getInfo() { return info; } public void setInfo(String info) { this.info = info; } public Set getSuites() { return suites; } public void setSuites(Set suites) { this.suites = suites;
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/Address.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Parent {
1
public class Address {
2
	private Long id;
2
	private Long id;
3
	private String name;
3
	private String info;
4
	private Collection children = new HashSet();
4
	private 
5
	Parent() {}
5
Set suites = new HashSet();
6
	public Address() {
7
	}
8

6
	public Parent(String name) {
9
	public Address(String info) {
7
		this.name = name;
10
		this.
8
	}
9
	/**
10
	 * @return Returns the children.
11
	 */
11
info = info;
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 getInfo() {
26
		return id;
24
		return i
27
	}
28
	/**
29
	 * @param id The id to set.
30
	 */
25
nfo;
26
	}
27

31
	public void setId(Long id) {
28
	public void setInfo(String info) {
32
		this.id = id;
29
		this.info = i
33
	}
34
	/**
35
	 * @return Returns the name.
36
	 */
37
	public String getName
30
nfo;
31
	}
38
() {
32
	public Set getSuites() {
39
		return name;
33
		return 
40
	}
41
	/**
42
	 * @param name The name to set.
43
	 */
34
suites;
35
	}
36

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