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(
14
version = version;
15
	}
16
	Task() {}
15
) {
17
	public Task(String description, Person person) {
16
		return pk;
18
		
17
	}
18
	public void setPk(Long pk) {
19
		this.pk = pk;
20
	}
21

19
this.description = description;
20
		this.person = person;
21
		person.getTasks().add(this);
22
	}
22
	public String getName() {
23
	public String getDescription() {
23
		return name;
24
		return 
24
	}
25

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

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