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 Point implements Serializable { private BigDecimal x; private BigDecimal y; private String description; private Object row; Point() {} public Point(BigDecimal x, BigDecimal y) { this.x = x; this.y = y; } public BigDecimal getX() { return x; } void setX(BigDecimal x) { this.x = x; } public BigDecimal getY() { return y; } void setY(BigDecimal y) { this.y = y; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public Object getRow() { return row; } public void setRow(Object row) { this.row = row;
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/rowid/Point.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;
3
	private String name
2
Point implements Serializable {
3
	private BigDecimal x;
4
;
4
	private BigDecimal y;
5
	private String description;
5
	private String description;
6
	private ProductLine productLine;
6
	private Object row;
7
	
8
	Model() {}
7
	Point() {}
9
	
8
	
10
	public Model(ProductLine pl) {
9
	public 
11
		this.productLine
10
Point(BigDecimal x, BigDecimal y) {
12
 = pl;
11
		this.x = x;
13
		pl.getModels().add(this);
12
		this.y = y;
14
	}
13
	}
15
	
16
	public String getDescription() {
14
	public BigDecimal getX() {
17
		return description;
15
		return 
18
	}
19
	public void setDescription(String description) {
20
		this.description = description
16
x;
17
	}
18
	void setX(BigDecimal x) {
21
;
19
		this.x = x;
22
	}
20
	}
23
	public String getId() {
21
	public BigDecimal getY() {
24
		return id;
22
		return y;
25
	}
23
	}
26
	public void setId(String id) {
24
	void setY(BigDecimal y) {
27
		this.id = id;
25
		this.y = y;
28
	}
26
	}
29
	public String getName() {
27
	public String getDescription() {
30
		return name;
28
		return description;
31
	}
29
	}
32
	public void setName(String name) {
30
	public void set
33
		this.name = name
31
Description(String description) {
34
;
32
		this.description = description;
35
	}
33
	}
36
	public ProductLine getProductLine() {
34
	public Object getRow() {
37
		return productLine;
35
		return row;
38
	}
36
	}
39
	public void setProductLine(ProductLine productLine) {
37
	public void setRow(Object row) {
40
		this.productLine = productLine;
38
		this.row = row;
41
	
39
	
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