public class Person { private Long id; private String name; private String personId; /** * @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 name. */ public String getName() { return name; } /** * @param name The name to set. */ public void setName(String name) { this.name = name; } public String getPersonId() { return personId; } public void setPersonId(String personId) { this.personId = personId
public class Being { private long id; private String identity; private String location; private String species; public void setLocation(String location) { this.location = location; } public String getLocation() { return location; } public void setSpecies(String species) { this.species = species; } public String getSpecies() { return species; } public void setIdentity(String identity) { this.identity = identity; } public String getIdentity() { return identity
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/propertyref/inheritence/union/Person.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/subselect/Being.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Person {
1
public class Being {
2
	private Long id;
2
	private long id;
3
	private String name;
3
	private String identity;
4
	private String personId;
4
	private String 
5
	/**
6
	 * @return Returns the id.
7
	 */
8
	public Long getId() {
9
		return id;
10
	}
11
	/**
12
	 * @param id The id to set.
13
	 */
14
	public void setId(Long id
5
location;
6
	private String species;
7
	
15
) {
8
	public void setLocation(String location) {
16
		this.id = id;
9
		this.
17
	}
18
	/**
19
	 * @return Returns the name.
20
	 */
10
location = location;
11
	}
21
	public String getName() {
12
	public String getLocation() {
22
		return name;
13
		return 
23
	}
24
	/**
25
	 * @param name The name to set.
26
	 */
14
location;
15
	}
27
	public void setName(String name) {
16
	public void setSpecies(String species) {
28
		this.name = name;
17
		this.species = species;
29
	}
18
	}
30
	public String getPersonId() {
19
	public String getSpecies() {
31
		return personId;
20
		return spe
32
	}
33

21
cies;
22
	}
34
	public void setPersonId(String personId) {
23
	public void setIdentity(String identity) {
35
		this.personId = personId
24
		this.identity = identity;
25
	}
26
	public String getIdentity() {
27
		return identity
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