public class Item { private Long id; private String name; private long version; private Set parts = new HashSet(); public Item() { } public Item(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 long getVersion() { return version; } public void setVersion(long version) { this.version = version; } public Set getParts() { return parts; } public void setParts(Set parts) { this.parts = parts;
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/jpa/Item.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/version/sybase/Group.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Item {
1
public class Group {
2
	private Long id;
2
	private Long id;
3
	private String name;
3
	private 
4
	private long version;
5
	private Set parts = new HashSet();
6

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

10
	public Item(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.timestamp = 
28
	}
29

24
timestamp;
25
	}
30
	public long getVersion() {
26
	public String getName() {
31
		return version;
27
		return 
32
	}
33

28
name;
29
	}
34
	public void setVersion(long version) {
30
	public void setName(String name) {
35
		this.version = version;
31
		this.
36
	}
37

32
name = name;
33
	}
38
	public Set getParts() {
34
	public Set getUsers() {
39
		return parts;
35
		return users;
40
	}
36
	}
41

42
	public void setParts(Set parts) {
37
	public void setUsers(Set users) {
43
		this.parts = parts;
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