public class AddressImpl implements Address { private Long id; private String addressType; private Server server; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getAddressType() { return addressType; } public void setAddressType(String addressType) { this.addressType = addressType; } public Server getServer() { return server; } public void setServer(Server server) { this.server = server
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/abstractembeddedcomponents/propertyref/AddressImpl.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 AddressImpl implements Address {
1
public class Immutable {
2
	private Long id;
2
	private String foo;
3
	private String addressType;
3
	private String 
4
	private Server server;
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 getAddressType() {
17
	public String getBar() {
15
		return addressType;
18
		return 
16
	}
17

19
bar;
20
	}
21
	
18
	public void setAddressType(String addressType) {
22
	public void setBar(String bar) {
19
		this.addressType = addressType;
23
		this.
20
	}
21
	public Server getServer
24
bar = bar;
25
	}
26
	
22
() {
27
	public String getId() {
23
		return server;
28
		return 
24
	}
25

29
id;
30
	}
31
	
26
	public void setServer(Server server) {
32
	public void setId(String id) {
27
		this.server = server
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