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;
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/deletetransient/Address.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 Address {
1
public class OneToOneNoProxy {
2
	private Long id;
2
	private Long entityId;
3
	private String info;
3
	private String name;
4
	private Set suites = new HashSet();
4
	private 
5
	public Address() {
6
	}
7
	public Address
5
EntityWithOneToOnes entity;
6
	public OneToOneNoProxy() {}
8
(String info) {
7
	public OneToOneNoProxy(String name) {
9
		this.info = info;
8
		this.
10
	}
11

9
name = name;
10
	}
11
	/**
12
	 * @return Returns the id.
13
	 */
12
	public Long getId() {
14
	public Long getEntityId() {
13
		return id;
15
		return entityId;
14
	}
16
	}
15

17
	/**
18
	 * @param entityId The id to set.
19
	 */
16
	public void setId(Long id) {
20
	public void setEntityId(Long entityId) {
17
		this.id = id;
21
		this.entityId = entityId;
18
	}
22
	}
19

23
	/**
24
	 * @return Returns the name.
25
	 */
20
	public String getInfo() {
26
	public String getName() {
21
		return info;
27
		return 
22
	}
23

28
name;
29
	}
30
	/**
31
	 * @param name The name to set.
32
	 */
24
	public void setInfo(String info) {
33
	public void setName(String name) {
25
		this.info = info;
34
		this.
26
	}
27
	public Set getSuites
35
name = name;
36
	}
28
() {
37
	public EntityWithOneToOnes getEntity() {
29
		return suites;
38
		return 
30
	}
31

39
entity;
40
	}
32
	public void setSuites(Set suites) {
41
	public void setEntity(EntityWithOneToOnes entity) {
33
		this.suites = suites;
42
		this.entity = entity;
34
	
43
	
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