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
public class OtherAssigned { private Long id; private ParentAssigned owner; public OtherAssigned() { } public OtherAssigned(Long id) { this.id = id; } public Long getId() { return id; } public ParentAssigned getOwner() { return owner; } public void setOwner(ParentAssigned owner) { this.owner = owner
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/joinedsubclass/Customer.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/jpa/cascade/OtherAssigned.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Customer extends Person {
1
public class OtherAssigned {
2
	private Employee salesperson;
2
	private 
3
	private String comments;
4
	/**
5
	 * @return Returns the salesperson.
6
	 */
7
	public Employee getSalesperson() {
8
		return salesperson;
9
	}
10
	/**
11
	 * @param salesperson The salesperson to set.
12
	 */
13
	public void setSalesperson(Employee salesperson
3
Long id;
4
	private ParentAssigned owner;
5
	public OtherAssigned() {
6
	}
14
) {
7
	public OtherAssigned(Long id) {
15
		this.salesperson = salesperson;
8
		this.
16
	}
17
	/**
18
	 * @return Returns the comments.
19
	 */
9
id = id;
10
	}
11

20
	public String getComments() {
12
	public Long getId() {
21
		return comments;
13
		return 
22
	}
23
	/**
24
	 * @param comments The comments to set.
25
	 */
14
id;
15
	}
16
	public ParentAssigned getOwner() {
17
		return owner;
18
	}
19

26
	public void setComments(String comments) {
20
	public void setOwner(ParentAssigned owner) {
27
		this.comments = comments
21
		this.owner = owner
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