public class Definition { private Long id; private Set values = new HashSet(); public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Set getValues() { return values; } public void setValues(Set values) { this.values = values;
public class Customer extends Person { private Employee salesperson; private String comments; /** * @return Returns the salesperson. */ public Employee getSalesperson() { return salesperson; } /** * @param salesperson The salesperson to set. */ public void setSalesperson(Employee salesperson) { this.salesperson = salesperson; } /** * @return Returns the comments. */ public String getComments() { return comments; } /** * @param comments The comments to set. */ public void setComments(String comments) { this.comments = comments;
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/collection/Definition.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/joinedsubclass/Customer.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Definition {
1
public class 
2
    private Long id;
3
	private Set values = new HashSet();
4
	public Long getId
2
Customer extends Person {
3
	private Employee salesperson;
4
	private String comments;
5
	/**
6
	 * @return Returns the salesperson.
7
	 */
5
() {
8
	public Employee getSalesperson() {
6
		return id;
9
		return 
7
	}
8
	public void setId(Long id
10
salesperson;
11
	}
12
	/**
13
	 * @param salesperson The salesperson to set.
14
	 */
9
) {
15
	public void setSalesperson(Employee salesperson) {
10
		this.id = id;
16
		this.
11
	}
12
	public Set getValue
17
salesperson = salesperson;
18
	}
19
	/**
20
	 * @return Returns the comments.
21
	 */
13
s() {
22
	public String getComments() {
14
		return values;
23
		return comments;
15
	}
24
	}
16

25
	/**
26
	 * @param comments The comments to set.
27
	 */
17
	public void setValues(Set values) {
28
	public void setComments(String comments) {
18
		this.values = values;
29
		this.comments = comments;
19
	
30
	
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