public class Suite { private Long id; private String location; private Set notes = new HashSet(); public Suite() { } public Suite(String location) { this.location = location; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getLocation() { return location; } public void setLocation(String location) { this.location = location; } public Set getNotes() { return notes; } public void setNotes(Set notes) { this.notes = notes
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/Suite.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 Suite {
1
public class OneToOneNoProxy {
2
	private Long id;
2
	private Long entityId;
3
	private String location;
3
	private String 
4
	private Set notes = new HashSet();
5
	public Suite() {
6
	}
7
	public Suite(String location
4
name;
5
	private EntityWithOneToOnes entity;
6
	public OneToOneNoProxy() {}
8
) {
7
	public OneToOneNoProxy(String name) {
9
		this.location = location;
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 getLocation() {
26
	public String getName() {
21
		return location;
27
		return 
22
	}
23

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

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