public abstract class Vehicle { private Long id; private String vin; private String owner; public String getVin() { return vin; } public void setVin(String vin) { this.vin = vin; } public String getOwner() { return owner; } public void setOwner(String owner) { this.owner = owner;
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/hql/Vehicle.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/unionsubclass2/Customer.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public abstract class Vehicle {
1
public 
2
	private Long id;
3
	private String vin;
4
	private String owner;
5
	public String getVin() {
6
		return vin;
7
	}
8
	public void setVin(String vin) {
9
		this.vin = vin;
10
	}
2
class Customer extends Person {
3
	private Employee salesperson;
4
	private String comments;
5
	/**
6
	 * @return Returns the salesperson.
7
	 */
8
	public Employee getSalesperson() {
9
		return salesperson;
10
	}
11
	/**
12
	 * @param salesperson The salesperson to set.
13
	 */
14
	public void setSalesperson(Employee salesperson) {
15
		this.salesperson = salesperson;
16
	}
17
	/**
18
	 * @return Returns the comments.
19
	 */
11
	public String getOwner() {
20
	public String getComments() {
12
		return owner;
21
		return 
13
	}
22
comments;
23
	}
24
	/**
25
	 * @param comments The comments to set.
26
	 */
14
	public void setOwner(String owner) {
27
	public void setComments(String comments) {
15
		this.owner = owner;
28
		this.comments = comments;
16
	
29
	
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