public class MyEntity { private Long id; private String name; public MyEntity() { } public MyEntity(String name) { this.name = name; } public Long getId() { return id; } public String getName() { return name; } public void setName(String name) { this.name = name
public class Car { private Long id; private String color; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getColor() { return color; } public void setColor(String color) { this.color = color
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/generatedkeys/select/MyEntity.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/id/Car.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class MyEntity {
1
public class Car {
2
	private Long id;
2
	private Long id;
3
	private String name;
3
	private String color;
4
	public MyEntity() {
4
	public 
5
	}
6
	public MyEntity(String name) {
7
		this.name = name;
8
	}
9
	public Long getId() {
10
		return
5
Long getId() {
6
		return id;
7
	}
8
	public void setId(Long id) {
11
 id;
9
		this.id = id;
12
	}
10
	}
13
	public String getName() {
11
	public String getColor() {
14
		return name;
12
		return color;
15
	}
13
	}
16
	public void setName(String name) {
14
	public void setColor(String color) {
17
		this.name = name
15
		this.color = color
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