public class OptionalComponent { private String value1; private String value2; public String getValue1() { return value1; } public void setValue1(String value1) { this.value1 = value1; } public String getValue2() { return value2; } public void setValue2(String value2) { this.value2 = value2;
public class Person { private Long id; private Identity identity; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Identity getIdentity() { return identity; } public void setIdentity(Identity identity) { this.identity = identity;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/component/basic/OptionalComponent.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/propertyref/component/complete/Person.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class OptionalComponent {
1
public class Person {
2
	private String value1;
2
	private 
3
	private String value2;
3
Long id;
4
	private Identity identity;
5
	
4
	public String getValue1() {
6
	public Long getId() {
5
		return value1;
7
		return id;
6
	}
8
	}
9

7
	public void setValue1(String value1) {
10
	public void setId(Long id) {
8
		this.value1 = value1;
11
		this.id = id;
9
	}
12
	}
13

10
	public String getValue2() {
14
	public Identity getIdentity() {
11
		return value2;
15
		return identity;
12
	}
16
	}
17

13
	public void setValue2(String value2) {
18
	public void setIdentity(Identity identity) {
14
		this.value2 = value2;
19
		this.identity = identity;
15
	
20
	
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