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 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/compositeelement/Parent.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 Parent {
1
public class OneToOneNoProxy {
2
	private Long id;
2
	private Long entityId;
3
	private String name;
3
	private String name;
4
	private Collection children = new HashSet();
4
	private 
5
	Parent() {}
6
	public Parent
5
EntityWithOneToOnes entity;
6
	public OneToOneNoProxy() {}
7
(String name) {
7
	public OneToOneNoProxy(String name) {
8
		this.name = name;
8
		this.name = name;
9
	}
9
	}
10
	/**
10
	/**
11
	 * @return Returns the children.
11
	 * @return Returns the id.
12
	 */
12
	 */
13
	public Collection getChildren() {
13
	public Long getEntityId() {
14
		return children;
14
		return entityId;
15
	}
15
	}
16
	/**
16
	/**
17
	 * @param children The children to set.
17
	 * @param entityId The id to set.
18
	 */
18
	 */
19
	public void setChildren(Collection children) {
19
	public void set
20
		this.children = children
20
EntityId(Long entityId) {
21
;
21
		this.entityId = entityId;
22
	}
22
	}
23
	/**
23
	/**
24
	 * @return Returns the id.
24
	 * @return Returns the name.
25
	 */
25
	 */
26
	public Long getId() {
26
	public String getName() {
27
		return id;
27
		return name;
28
	}
28
	}
29
	/**
29
	/**
30
	 * @param id The id to set.
30
	 * @param name The name to set.
31
	 */
31
	 */
32
	public void setId(Long id) {
32
	public void set
33
		this.id = id;
34
	}
35
	/**
36
	 * @return Returns the
33
Name(String name) {
37
 name.
34
		this.name = name;
38
	 */
35
	}
39
	public String getName() {
36
	public 
40
		return name;
41
	}
42
	/**
43
	 * @param name The name to set.
44
	 */
45
	public void setName(String name) {
46
		this.name = name
37
EntityWithOneToOnes getEntity() {
38
		return entity;
39
	}
40
	public void setEntity(EntityWithOneToOnes entity) {
41
		this.entity = entity
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