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 Site { private String name; private String description; private Set employees = new HashSet(); private Set managers = new HashSet(); Site() {} public Site(String name) { this.name=name; } public Set getManagers() { return managers; } public void setManagers(Set managers) { this.managers = managers; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public Set getEmployees() { return employees; } public void setEmployees(Set employees) { this.employees = employees; } public String getName() { return name; } public void setName(String name) { this.name = name
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/Site.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Model {
1
public class 
2
	private String id;
2
Site {
3
	private String name;
3
	private String name;
4
	private String description;
4
	private String description;
5
	private ProductLine productLine
5
	private Set employees = new HashSet();
6
;
6
	private Set managers = new HashSet();
7
	
8
	Model() {}
7
	Site() {}
9
	
8
	
10
	public Model(ProductLine pl) {
9
public 
11
		this.productLine = pl;
12
		pl.getModels().add(this)
10
Site(String name) {
11
		this.name=name;
12
	}
13
	public Set getManagers() {
14
		return managers;
15
	}
16
	public void setManagers(Set managers) {
13
;
17
		this.managers = managers;
14
	}
18
	}
15
	
19
	
16
	public String getDescription() {
20
public String getDescription() {
17
		return description;
21
		return description;
18
	}
22
	}
19
	public void setDescription(String description) {
23
	public void setDescription(String description) {
20
		this.description = description;
24
		this.description = description;
21
	}
25
	}
22
	public String getId() {
26
	public Set getEmployees() {
23
		return id;
27
		return employees;
24
	}
28
	}
25
	public void setId(String id) {
29
	public void set
26
		this.id = id
30
Employees(Set employees) {
27
;
31
		this.employees = employees;
28
	}
32
	}
29
	public String getName() {
33
	public String getName() {
30
		return name;
34
		return name;
31
	}
35
	}
32
	public void setName(String name) {
36
	public void setName(String name) {
33
		this.name = name;
37
		this.name = name
34
	}
35
	public ProductLine getProductLine() {
36
		return productLine;
37
	}
38
	public void setProductLine(ProductLine productLine) {
39
		this.productLine = productLine
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