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
public class Locality { private Long id; private String name; private Country country; public Locality() { } public Locality(String name, Country country) { this.name = name; this.country = country; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Country getCountry() { return country; } public void setCountry(Country country) { this.country = country
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/ops/TimestampedEntity.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/stats/Locality.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class TimestampedEntity {
1
public class Locality {
2
	private String id;
2
	private Long id;
3
	private String name;
3
	private String name;
4
	private Date timestamp;
4
	private 
5
	public TimestampedEnt
5
Country country;
6
ity() {
6
	public Locality() {
7
	}
7
	}
8

9
	public TimestampedEntity(String id, String name) {
8
	public Locality(String name, Country country) {
10
		this.id = id;
9
		this.
11
		this.name = name;
12
	}
13

10
name = name;
11
		this.country = country;
12
	}
14
	public String getId() {
13
	public Long getId() {
15
		return id;
14
		return id;
16
	}
15
	}
17

18
	public void setId(String id) {
16
	public void setId(Long id) {
19
		this.id = id;
17
		this.id = id;
20
	}
18
	}
21

22
	public String getName() {
19
	public String getName() {
23
		return name;
20
		return name;
24
	}
21
	}
25

26
	public void setName(String name) {
22
	public void setName(String name) {
27
		this.name = name;
23
		this.name = name;
28
	}
24
	}
29

30
	public Date getTimestamp() {
25
	public Country getCountry() {
31
		return timestamp;
26
		return 
32
	}
33
	public void setTimestamp(Date timestamp
27
country;
28
	}
34
) {
29
	public void setCountry(Country country) {
35
		this.timestamp = timestamp
30
		this.country = country
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