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 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/collection/bag/BagOwner.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 BagOwner {
1
public class Address {
2
	private String name;
2
	private Long id;
3
	private BagOwner parent;
3
	private 
4
	private List children = new ArrayLis
4
String info;
5
t();
5
	private Set suites = new HashSet();
6
	public BagOwner() {
6
	public Address() {
7
	}
7
	}
8
	public BagOwner(String name) {
8
	public Address(String info) {
9
		this.name = name;
9
		this.info = info;
10
	}
10
	}
11
	public String getName() {
11
	public Long getId() {
12
		return name;
12
		return id;
13
	}
13
	}
14
	public void setName(String name) {
14
	public void setId(Long id) {
15
		this.name = name;
15
		this.id = id;
16
	}
16
	}
17
	public BagOwner getParent() {
17
	public String getInfo() {
18
		return parent;
18
		return info;
19
	}
19
	}
20
	public void setParent(BagOwner parent) {
20
	public void set
21
		this.parent = parent
21
Info(String info) {
22
;
22
		this.info = info;
23
	}
23
	}
24
	public List getChildren() {
24
	public Set getSuites() {
25
		return children;
25
		return suites;
26
	}
26
	}
27
	public void setChildren(List children) {
27
	public void setSuites(Set suites) {
28
		this.children = children
28
		this.suites = suites
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