public class ChildEntity extends ChildValue implements Entity { private Long id; public ChildEntity() { super(); } public ChildEntity(String name) { super( name ); } public Long getId() { return id; } public void setId(Long id) { this.id = id
public class Customer extends Person { private Employee contactOwner; public Customer() { } public Customer(String name) { super( name ); } public Employee getContactOwner() { return contactOwner; } public void setContactOwner(Employee contactOwner) { this.contactOwner = contactOwner
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/event/collection/ChildEntity.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/subclassfilter/Customer.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class ChildEntity extends ChildValue implements Entity {
1
public class C
2
	private Long id;
3
	public ChildEntity() {
4
		super();
2
ustomer extends Person {
3
	private Employee contactOwner;
4
	public Customer() {
5
	}
5
	}
6
	public ChildEntity(String name) {
6
	public Customer(String name) {
7
		super( name );
7
		super( name );
8
	}
8
	}
9
	public Long getId() {
9
	public Employee getContactOwner() {
10
		return id;
10
		return contactOwner;
11
	}
11
	}
12
	public void setId(Long id) {
12
	public void set
13
		this.id = id
13
ContactOwner(Employee contactOwner) {
14
		this.contactOwner = contactOwner
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