public class Hive { private long id; private Location location; private List members = new ArrayList(); public List getMembers() { return members; } public void setMembers(List hives) { this.members = hives; } public long getId() { return id; } public void setId(long id) { this.id = id; } public Location getLocation() { return location; } public void setLocation(Location location) { this.location = location
public class Thing { private long id; private String description; private Being owner; /** * @return Returns the description. */ public String getDescription() { return description; } /** * @param description The description to set. */ public void setDescription(String description) { this.description = description; } /** * @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 owner. */ public Being getOwner() { return owner; } /** * @param owner The owner to set. */ public void setOwner(Being owner) { this.owner = owner
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/unionsubclass/Hive.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/unionsubclass/Thing.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Hive {
1
public class Thing {
2
	private long id;
2
	private long id;
3
	private Location location;
3
	private String description;
4
	private List members = new ArrayList();
4
	private Being owner;
5
	/**
6
	 * @return Returns the description.
7
	 */
5
	public List getMembers() {
8
	public 
6
		return members;
7
	}
8
	public void setMembers(List hives) {
9
		this.members = hives;
10
	}
11
	public long getId() {
12
		return id;
13
	}
9
String getDescription() {
10
		return description;
11
	}
12
	/**
13
	 * @param description The description to set.
14
	 */
15
	public void setDescription(String description) {
16
		this.description = description;
17
	}
18
	/**
19
	 * @return Returns the id.
20
	 */
21
	public long getId() {
22
		return id;
23
	}
24
	/**
25
	 * @param id The id to set.
26
	 */
14
	public void setId(long id) {
27
	public void setId(long id) {
15
		this.id = id;
28
		this.id = id;
16
	}
29
	}
17
	public Location getLocation() {
30
	
18
		return location;
19
	}
20
	public void setLocation(Location location
31
/**
32
	 * @return Returns the owner.
33
	 */
34
	public Being getOwner() {
35
		return owner;
36
	}
37
	/**
38
	 * @param owner The owner to set.
39
	 */
21
) {
40
	public void setOwner(Being owner) {
22
		this.location = location
41
		this.owner = owner
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