public class E { private Long id; private float amount; private A reverse; private Set as; /** * Returns the amount. * @return float */ public float getAmount() { return amount; } /** * Returns the id. * @return long */ public Long getId() { return id; } /** * Sets the amount. * @param amount The amount to set */ public void setAmount(float amount) { this.amount = amount; } /** * Sets the id. * @param id The id to set */ public void setId(Long id) { this.id = id; } public A getReverse() { return reverse; } public void setReverse(A a) { reverse = a; } /** * @return Returns the as. */ public Set getAs() { return as; } /** * @param as The as to set. */ public void setAs(Set as) { this.as = as;
public class Human { private Long id; private String name; private char sex; private String address; public void setAddress(String address) { this.address = address; } public String getAddress() { return address; } public void setSex(char sex) { this.sex = sex; } public char getSex() { return sex; } public void setName(String name) { this.name = name; } public String getName() { return name; } public void setId(Long id) { this.id = id; } public Long getId() { return id;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/E.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/subselect/Human.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class E {
1
public class Human {
2
	private Long id;
2
	private Long id;
3
	private float amount;
3
	private String name;
4
	private A reverse;
4
	private char sex;
5
	private Set as;
5
	private S
6
	/**
7
	 * Returns the amount.
8
	 * @return float
9
	 */
10
	public float getAmount() {
11
		return amount;
12
	}
13
	
14
	/**
15
	 * Returns the id.
16
	 * @return long
17
	 */
6
tring address;
7
	
8
	public void setAddress(String address) {
9
		this.address = address;
10
	}
18
	public Long getId() {
11
	public String getAddress() {
19
		return id;
12
		return 
20
	}
21
	
22
	/**
23
	 * Sets the amount.
24
	 * @param amount The amount to set
25
	 */
26
	public void setAmount(float amount) {
27
		this.amount = amount;
28
	}
29
	
30
	/**
31
	 * Sets the id.
32
	 * @param id The id to set
33
	 */
13
address;
14
	}
15
	public void setSex(char sex) {
16
		this.sex = sex;
17
	}
18
	public char getSex() {
19
		return sex;
20
	}
34
	public void setId(Long id) {
21
	public void set
35
		this.id = id
22
Name(String name) {
36
;
23
		this.name = name;
37
	}
24
	}
38
	
25
	
39
	public A getReverse() {
26
public String getName() {
40
		return reverse;
27
		return name;
41
	}
28
	}
42
	public void setReverse(A a) {
29
	public void set
43
		reverse
30
Id(Long id) {
44
 = a;
31
		this.id = id;
45
	}
32
	}
46
	/**
47
	 * @return Returns the as.
48
	 */
49
	public Set getAs() {
33
	public Long getId() {
50
		return as;
34
		return 
51
	}
52
	/**
53
	 * @param as The as to set.
54
	 */
55
	public void setAs(Set as) {
56
		this.as = as;
35
id;
57
	
36
	
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