public class Person { private String name; private List things; private List tasks; private int version; Person() {} public Person(String name) { this.name = name; this.things = new ArrayList(); this.tasks = new ArrayList(); } public String getName() { return name; } public void setName(String name) { this.name = name; } public List getThings() { return things; } public void setThings(List things) { this.things = things; } public int getVersion() { return version; } public void setVersion(int version) { this.version = version; } public List getTasks() { return tasks; } public void setTasks(List tasks) { this.tasks = tasks;
public class Thing { private String description; private Person person; private int version; private String longDescription; public int getVersion() { return version; } public void setVersion(int version) { this.version = version; } Thing() {} public Thing(String description, Person person) { this.description = description; this.person = person; person.getThings().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; } public String getLongDescription() { return longDescription; } public void setLongDescription(String longDescription) { this.longDescription = longDescription;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/version/Person.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/version/Thing.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Person {
1
public class Thing {
2
	private String name;
2
	private String 
3
	private List things;
4
	private List tasks
3
description;
4
	private Person person;
5
;
5
	private int version;
6
	private int version;
6
	private 
7
	
8
	P
7
String longDescription;
8
	
9
erson() {
9
	public int getVersion() {
10
		return version;
10
}
11
	}
11
	public Person(String name) {
12
	public void setVersion(
12
		this.name = name;
13
		this.things = new ArrayList();
14
		this.tasks = new ArrayList();
15
	
13
int version) {
14
		this.version = version;
15
	}
16
}
16
	Thing() {}
17
	public String getName() {
17
	public Thing(String 
18
		return name;
19
	}
20
	public void setName(String name) {
21
		this.name = name;
22
	}
23
	public List getThings
18
description, Person person) {
19
		this.description = description;
20
		this.person = person;
21
		person.getThings().add(this);
22
	}
24
() {
23
	public String getDescription() {
25
		return things;
24
		return description;
26
	}
25
	}
27
	public void setThings(List things) {
26
	public void set
28
		this.things = things
27
Description(String description) {
29
;
28
		this.description = description;
30
	}
29
	}
31
	public int getVersion() {
30
	public Person getPerson() {
32
		return version;
31
		return person;
33
	}
32
	}
34
	public void setVersion(int version) {
33
	public void setPerson(Person person) {
35
		this.version = version;
34
		this.person = person;
36
	}
35
	}
37
	public List getTasks() {
36
	public 
38
		return tasks;
39
	}
40
	public void setTasks(List tasks) {
41
		this.tasks = tasks
37
String getLongDescription() {
38
		return longDescription;
39
	}
40
	public void setLongDescription(String longDescription) {
42
;
41
		this.longDescription = longDescription;
43
	
42
	
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