public class ComponentOwner { private Long id; private String name; private Component component; public ComponentOwner() { } public ComponentOwner(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 Component getComponent() { return component; } public void setComponent(Component component) { this.component = component; } public static class Component { private int generated; public int getGenerated() { return generated; } public void setGenerated(int generated) { this.generated = generated;
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/generated/ComponentOwner.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 ComponentOwner {
1
public class Group {
2
	private Long id;
2
	private Long id;
3
	private Date timestamp;
3
	private String name;
4
	private String name;
4
	private Component component;
5
	private 
5
	public ComponentOwner
6
Set users;
6
() {
7
	public Group() {
7
	}
8
	}
8

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

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

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

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

20
timestamp;
21
	}
25
	public void setName(String name) {
22
	public void setTimestamp(Date timestamp) {
26
		this.name = name;
23
		this.
27
	}
28
	public Component getComponent
24
timestamp = timestamp;
25
	}
29
() {
26
	public String getName() {
30
		return component;
27
		return 
31
	}
32
	public void setComponent(Component component
28
name;
29
	}
33
) {
30
	public void setName(String name) {
34
		this.component = component;
31
		this.
35
	}
36
	public static class Component {
37
		private int generated;
38
		public int getGenerated
32
name = name;
33
	}
39
() {
34
	public Set getUsers() {
40
	
41
		return generated;
35
		return 
42
		}
43
		public void setGenerated(int generated) {
44
			this.generated = generated;
36
users;
37
	}
38
	public void setUsers(Set users) {
39
		this.users = users;
45
		
40
	
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