public class ChildInfo { private Long id; private Child owner; private String info; public ChildInfo() { } public ChildInfo(String info) { this.info = info; } public Long getId() { return id; } public Child getOwner() { return owner; } public void setOwner(Child owner) { this.owner = owner; } public String getInfo() { return info; } public void setInfo(String info) { this.info = info
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/jpa/cascade/ChildInfo.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 ChildInfo {
1
public class Parent {
2
	private Long id;
2
	private Long id;
3
	private Child owner;
3
	private 
4
	private String info;
5
	public ChildInfo() {
6
	}
7

4
String name;
5
	private Collection children = new HashSet();
6
	/**
7
	 * @return Returns the children.
8
	 */
9
	public Collection getChildren() {
10
		return children;
11
	}
12
	/**
13
	 * @param children The children to set.
14
	 */
8
	public ChildInfo(String info) {
15
	public void setChildren(Collection children) {
9
		this.info = info;
16
		this.
10
	}
11

17
children = children;
18
	}
19
	/**
20
	 * @return Returns the id.
21
	 */
12
	public Long getId() {
22
	public Long getId() {
13
		return id;
23
		return id;
14
	}
24
	}
15
	public Child getOwner() {
16
		return owner;
17
	}
18
	public void setOwner(Child owner
25
	/**
26
	 * @param id The id to set.
27
	 */
19
) {
28
	public void setId(Long id) {
20
		this.owner = owner;
29
		this.
21
	}
22

30
id = id;
31
	}
32
	/**
33
	 * @return Returns the name.
34
	 */
23
	public String getInfo() {
35
	public String getName() {
24
		return info;
36
		return 
25
	}
26

37
name;
38
	}
39
	/**
40
	 * @param name The name to set.
41
	 */
27
	public void setInfo(String info) {
42
	public void setName(String name) {
28
		this.info = info
43
		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