public class Person { private Long id; private String name; private Address address; private PersonalDetails details; public Person() { } public Person(String name) { this.name = name; } 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 Address getAddress() { return address; } public void setAddress(Address address) { this.address = address; } public PersonalDetails getDetails() { return details; } public void setDetails(PersonalDetails details) { this.details = details;
public class Group { private Long id; private Date timestamp; private String name; private Set users; public Group() { } public Group(String name) { this.name = name; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Date getTimestamp() { return timestamp; } public void setTimestamp(Date timestamp) { this.timestamp = timestamp; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Set getUsers() { return users; } public void setUsers(Set users) { this.users = users;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/ops/Person.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/version/db/Group.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Person {
1
public class Group {
2
	private Long id;
2
	private Long id;
3
	private String name;
3
	private 
4
	private Address address;
5
	private PersonalDetails details;
6

4
Date timestamp;
5
	private String name;
6
	private Set users;
7
	public Person() {
7
	public Group() {
8
	}
8
	}
9

10
	public Person(String name) {
9
	public Group(String name) {
11
		this.name = name;
10
		this.name = name;
12
	}
11
	}
13

14
	public Long getId() {
12
	public Long getId() {
15
		return id;
13
		return id;
16
	}
14
	}
17

18
	public void setId(Long id) {
15
	public void setId(Long id) {
19
		this.id = id;
16
		this.id = id;
20
	}
17
	}
21

22
	public String getName() {
18
	public Date getTimestamp() {
23
		return name;
19
		return 
24
	}
25

20
timestamp;
21
	}
26
	public void setName(String name) {
22
	public void setTimestamp(Date timestamp) {
27
		this.name = name;
23
		this.
28
	}
29
	public Address getAddress
24
timestamp = timestamp;
25
	}
30
() {
26
	public String getName() {
31
		return address;
27
		return 
32
	}
33

28
name;
29
	}
34
	public void setAddress(Address address) {
30
	public void setName(String name) {
35
		this.address = address;
31
		this.
36
	}
37
	public PersonalDetails getDetail
32
name = name;
33
	}
38
s() {
34
	public Set getUsers() {
39
		return details;
35
		return users;
40
	}
36
	}
41

42
	public void setDetails(PersonalDetails details) {
37
	public void setUsers(Set users) {
43
		this.details = details;
38
		this.users = users;
44
	
39
	
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