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;
public class OneToOneProxy { private Long entityId; private String name; private EntityWithOneToOnes entity; public OneToOneProxy() {} public OneToOneProxy(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/instrument/domain/OneToOneNoProxy.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/instrument/domain/OneToOneProxy.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class OneToOneNoProxy {
1
public class OneToOneProxy {
2
	private Long entityId;
2
	private Long entityId;
3
	private String name;
3
	private String name;
4
	private EntityWithOneToOnes entity;
4
	private EntityWithOneToOnes entity;
5
	public OneToOneNoProxy() {}
5
	public OneToOneProxy() {}
6
	public OneToOneNoProxy(String name) {
6
	public OneToOneProxy(String name) {
7
		this.name = name;
7
		this.name = name;
8
	}
8
	}
9
	/**
9
	/**
10
	 * @return Returns the id.
10
	 * @return Returns the id.
11
	 */
11
	 */
12
	public Long getEntityId() {
12
	public Long getEntityId() {
13
		return entityId;
13
		return entityId;
14
	}
14
	}
15
	/**
15
	/**
16
	 * @param entityId The id to set.
16
	 * @param entityId The id to set.
17
	 */
17
	 */
18
	public void setEntityId(Long entityId) {
18
	public void setEntityId(Long entityId) {
19
		this.entityId = entityId;
19
		this.entityId = entityId;
20
	}
20
	}
21
	/**
21
	/**
22
	 * @return Returns the name.
22
	 * @return Returns the name.
23
	 */
23
	 */
24
	public String getName() {
24
	public String getName() {
25
		return name;
25
		return name;
26
	}
26
	}
27
	/**
27
	/**
28
	 * @param name The name to set.
28
	 * @param name The name to set.
29
	 */
29
	 */
30
	public void setName(String name) {
30
	public void setName(String name) {
31
		this.name = name;
31
		this.name = name;
32
	}
32
	}
33
	public EntityWithOneToOnes getEntity() {
33
	public EntityWithOneToOnes getEntity() {
34
		return entity;
34
		return entity;
35
	}
35
	}
36
	public void setEntity(EntityWithOneToOnes entity) {
36
	public void setEntity(EntityWithOneToOnes entity) {
37
		this.entity = entity;
37
		this.entity = entity;
38
	
38
	
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