public class Person { private Long pk; private String name; private int id; public Person() { } public Person(Long pk, String name, int id) { this.pk = pk; this.name = name; this.id = id; } public Long getPk() { return pk; } public void setPk(Long pk) { this.pk = pk; } public String getName() { return name; } public void setName(String name) { this.name = name; } public int getId() { return id; } public void setId(int id) { this.id = id
public class Task { private String description; private Person person; private int version; public int getVersion() { return version; } public void setVersion(int version) { this.version = version; } Task() {} public Task(String description, Person person) { this.description = description; this.person = person; person.getTasks().add(this); } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public Person getPerson() { return person; } public void setPerson(Person person) { this.person = person
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/idprops/Person.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/version/Task.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Person {
1
public class Task {
2
	private Long pk;
2
	private 
3
	private String name;
3
String description;
4
	private Person person;
4
	private int id;
5
	private int 
5

6
version;
7
	
6
	public Person() {
8
	public int getVersion() {
7
	}
9
	
8
	public P
10
	return version;
11
	}
9
erson(Long pk, String name, int id) {
12
	public void setVersion(int version) {
10
		this.pk = pk;
13
		this.
11
		this.name = name;
12
		this.id = id;
13
	}
14
	public Long getPk() {
15
		return pk;
16
	}
17
	public void setPk(Long pk) {
18
		this.pk = pk;
19
	}
20

14
version = version;
15
	}
16
	Task() {}
17
	public Task(String description, Person person) {
18
		this.description = description;
19
		this.person = person;
20
		person.getTasks().add(this);
21
	}
21
	public String getName() {
22
	public String getDescription() {
22
		return name;
23
		return 
23
	}
24

24
description;
25
	}
25
	public void setName(String name) {
26
	public void setDescription(String description) {
26
		this.name = name;
27
		this.
27
	}
28
	public int getId
28
description = description;
29
	}
29
() {
30
	public Person getPerson() {
30
		return id;
31
		return 
31
	}
32

32
person;
33
	}
33
	public void setId(int id) {
34
	public void setPerson(Person person) {
34
		this.id = id
35
		this.person = person
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