public class ListOwner { private String name; private ListOwner parent; private List children = new ArrayList(); public ListOwner() { } public ListOwner(String name) { this.name = name; } public String getName() { return name; } public void setName(String name) { this.name = name; } public ListOwner getParent() { return parent; } public void setParent(ListOwner parent) { this.parent = parent; } public List getChildren() { return children; } public void setChildren(List children) { this.children = children;
public class OneToOneNoProxy { private Long entityId; private String name; private EntityWithOneToOnes entity; public OneToOneNoProxy() {} public OneToOneNoProxy(String name) { this.name = name; } /** * @return Returns the id. */ public Long getEntityId() { return entityId; } /** * @param entityId The id to set. */ public void setEntityId(Long entityId) { this.entityId = entityId; } /** * @return Returns the name. */ public String getName() { return name; } /** * @param name The name to set. */ public void setName(String name) { this.name = name; } public EntityWithOneToOnes getEntity() { return entity; } public void setEntity(EntityWithOneToOnes entity) { this.entity = entity;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/collection/list/ListOwner.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/instrument/domain/OneToOneNoProxy.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class ListOwner {
1
public class OneToOneNoProxy {
2
	private String name;
2
	private 
3
	private ListOwner parent;
4
	private List children = new ArrayList();
5
	public ListOwner() {
6
	}
7
	public ListOwner
3
Long entityId;
4
	private String name;
5
	private EntityWithOneToOnes entity;
6
	public OneToOneNoProxy() {}
8
(String name) {
7
	public OneToOneNoProxy(String name) {
9
		this.name = name;
8
		this.name = name;
10
	}
9
	}
11

10
	/**
11
	 * @return Returns the id.
12
	 */
12
	public String getName() {
13
	public Long getEntityId() {
13
		return name;
14
		return 
14
	}
15

15
entityId;
16
	}
17
	/**
18
	 * @param entityId The id to set.
19
	 */
16
	public void setName(String name) {
20
	public void setEntityId(Long entityId) {
17
		this.name = name;
21
		this.
18
	}
19
	public ListOwner getParent
22
entityId = entityId;
23
	}
24
	/**
25
	 * @return Returns the name.
26
	 */
20
() {
27
	public String getName() {
21
		return parent;
28
		return 
22
	}
23
	public void setParent(ListOwner parent
29
name;
30
	}
31
	/**
32
	 * @param name The name to set.
33
	 */
24
) {
34
	public void setName(String name) {
25
		this.parent = parent;
35
		this.
26
	}
27
	public List getChildren
36
name = name;
37
	}
28
() {
38
	public EntityWithOneToOnes getEntity() {
29
		return children;
39
		return 
30
	}
31

40
entity;
41
	}
32
	public void setChildren(List children) {
42
	public void setEntity(EntityWithOneToOnes entity) {
33
		this.children = children;
43
		this.entity = entity;
34
	
44
	
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