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