public class Model { private String id; private String name; private String description; private ProductLine productLine; Model() {} public Model(ProductLine pl) { this.productLine = pl; pl.getModels().add(this); } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public String getId() { return id; } public void setId(String id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public ProductLine getProductLine() { return productLine; } public void setProductLine(ProductLine productLine) { this.productLine = productLine
public class Employee { private String name; private Date hireDate; private Map managerBySite = new HashMap(); private Set underlings = new HashSet(); Employee() {} public Employee(String name) { this.name=name; } public Map getManagerBySite() { return managerBySite; } public void setManagerBySite(Map managerBySite) { this.managerBySite = managerBySite; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Set getUnderlings() { return underlings; } public void setUnderlings(Set underlings) { this.underlings = underlings; } public Date getHireDate() { return hireDate; } public void setHireDate(Date hireDate) { this.hireDate = hireDate
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/batchfetch/Model.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/ternary/Employee.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Model {
1
public class Employee {
2
	private String id;
2
	private String name;
3
	private String name;
3
	private 
4
	private String description;
5
	private ProductLine productLine;
6
	
7
	Model
4
Date hireDate;
5
	private Map managerBySite = new HashMap();
6
	private Set underlings = new HashSet();
7
	
8
() {}
8
	Employee() {}
9
	
9
	
10
	public Model(ProductLine pl) {
10
public 
11
		this.productLine = pl;
12
		pl.getModels().add(this)
11
Employee(String name) {
13
;
12
		this.name=name;
14
	}
13
	}
15
	
14
	
16
	public String getDescription() {
15
public Map getManagerBySite() {
17
		return description;
16
		return managerBySite;
18
	}
17
	}
19
	public void setDescription(String description) {
18
	public void set
20
		this.description = description
19
ManagerBySite(Map managerBySite) {
21
;
20
		this.managerBySite = managerBySite;
22
	}
21
	}
23
	public String getId() {
22
	public String getName() {
24
		return id;
23
		return name;
25
	}
24
	}
26
	public void setId(String id) {
25
	public void setName(String name) {
27
		this.id = id;
26
		this.name = name;
28
	}
27
	}
29
	public String getName() {
28
	public Set getUnderlings() {
30
		return name;
29
		return underlings;
31
	}
30
	}
32
	public void setName(String name) {
31
	public void setUnderlings(Set underlings) {
33
		this.name = name;
32
		this.underlings = underlings;
34
	}
33
	}
35
	public ProductLine getProductLine() {
34
	public Date getHireDate() {
36
		return productLine;
35
		return hireDate;
37
	}
36
	}
38
	public void setProductLine(ProductLine productLine) {
37
	public void setHireDate(Date hireDate) {
39
		this.productLine = productLine
38
		this.hireDate = hireDate
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