public class Person { private Long id; private String firstName; private String lastName; public Person() { } public Person(String firstName, String lastName) { this.firstName = firstName; this.lastName = lastName; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getFirstName() { return firstName; } public void setFirstName(String firstName) { this.firstName = firstName; } public String getLastName() { return lastName; } public void setLastName(String lastName) { this.lastName = lastName;
public class TimestampedEntity { private String id; private String name; private Date timestamp; public TimestampedEntity() { } public TimestampedEntity(String id, String name) { this.id = id; this.name = name; } 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 Date getTimestamp() { return timestamp; } public void setTimestamp(Date timestamp) { this.timestamp = timestamp;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/jdbc/Person.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/ops/TimestampedEntity.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Person {
1
public class TimestampedEntity {
2
	private Long id;
2
	private String id;
3
	private String firstName;
3
	private String name;
4
	private String lastName;
4
	private Date timestam
5
p;
6

5
	public Person() {
7
	public TimestampedEntity() {
6
	}
8
	}
9

7
	public Person(String firstName, String lastName) {
10
	public TimestampedEntity(String id, String name) {
8
		this.firstName = firstName;
11
		this.id = id;
9
		this.lastName = lastName;
12
		this.name = name;
10
	}
13
	}
14

11
	public Long getId() {
15
	public String getId() {
12
		return id;
16
		return id;
13
	}
17
	}
18

14
	public void setId(Long id) {
19
	public void setId(String id) {
15
		this.id = id;
20
		this.id = id;
16
	}
21
	}
22

17
	public String getFirstName() {
23
	public String getName() {
18
		return firstName;
24
		return name;
19
	}
25
	}
26

20
	public void setFirstName(String firstName) {
27
	public void setName(String name) {
21
		this.firstName = firstName;
28
		this.name = name;
22
	}
29
	}
30

23
	public String getLastName() {
31
	public Date getTimestamp() {
24
		return lastName;
32
		return timestam
25
	}
33
p;
34
	}
35

26
	public void setLastName(String lastName) {
36
	public void setTimestamp(Date timestamp) {
27
		this.lastName = lastName;
37
		this.timestamp = timestamp;
28
	
38
	
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