public class Document { private Long id; private String location; private User owner; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getLocation() { return location; } public void setLocation(String location) { this.location = location; } public User getOwner() { return owner; } public void setOwner(User owner) { this.owner = owner
public class Immutable { private String foo; private String bar; private String id; public String getFoo() { return foo; } public void setFoo(String foo) { this.foo = foo; } public String getBar() { return bar; } public void setBar(String bar) { this.bar = bar; } public String getId() { return id; } public void setId(String id) { this.id = id
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/component/cascading/toone/Document.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/Immutable.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Document {
1
public class Immutable {
2
	private Long id;
2
	private String foo;
3
	private String location;
3
	private String 
4
	private User owner;
5

4
bar;
5
	private String id;
6
	
6
	public Long getId() {
7
	public String getFoo() {
7
		return id;
8
		return 
8
	}
9

9
foo;
10
	}
11
	
10
	public void setId(Long id) {
12
	public void setFoo(String foo) {
11
		this.id = id;
13
		this.
12
	}
13

14
foo = foo;
15
	}
16
	
14
	public String getLocation() {
17
	public String getBar() {
15
		return location;
18
		return 
16
	}
17

19
bar;
20
	}
21
	
18
	public void setLocation(String location) {
22
	public void setBar(String bar) {
19
		this.location = location;
23
		this.
20
	}
21
	public User getOwner
24
bar = bar;
25
	}
26
	
22
() {
27
	public String getId() {
23
		return owner;
28
		return 
24
	}
25

29
id;
30
	}
31
	
26
	public void setOwner(User owner) {
32
	public void setId(String id) {
27
		this.owner = owner
33
		this.id = id
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