public class Item { private long id; private String name; private String description; public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public long getId() { return id; } public void setId(long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name
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/querycache/Item.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 Item {
1
public class Thing {
2
	private long id;
2
	private long id;
3
	private String name;
3
	private String description;
4
	private String 
4
	private Being owner;
5
	/**
5
description;
6
	 * @return Returns the description
7
.
8
	 */
6
	public String getDescription() {
9
	public String getDescription() {
7
		return description;
10
		return description;
8
	}
11
	}
9
	
12
	/**
13
	 * @param description The description to set.
14
	 */
10
public void setDescription(String description) {
15
	public void setDescription(String description) {
11
		this.description = description;
16
		this.description = description;
12
	}
17
	}
13
	
18
	/**
19
	 * @return Returns the id.
20
	 */
14
public long getId() {
21
	public long getId() {
15
		return id;
22
		return id;
16
	}
23
	}
17
	
24
	/**
25
	 * @param id The id to set.
26
	 */
18
public void setId(long id) {
27
	public void setId(long id) {
19
		this.id = id;
28
		this.id = id;
20
	}
29
	}
21
	
30
	/**
31
	 * @return Returns the owner.
32
	 */
22
public String getName() {
33
	public Being getOwner() {
23
		return name;
34
		return 
24
	}
35
owner;
36
	}
37
	/**
38
	 * @param owner The owner to set.
39
	 */
25
	public void setName(String name) {
40
	public void setOwner(Being owner) {
26
		this.name = name
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