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 Document { private String text; private String name; private Date lastModified; Document() {} public Document(String text, String name) { this.text = text; this.name = name; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getText() { return text; } public void setText(String text) { this.text = text; } public Date getLastModified() { return lastModified; } void setLastModified(Date lastModified) { this.lastModified = lastModified
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/stateless/Document.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class TimestampedEntity {
1
public class Document {
2
	
2
	private String id;
3
	private String text;
3
	private String name;
4
	private String name;
4
	private Date timestamp;
5
	private Date 
5
	public TimestampedEntity
6
lastModified;
6
() {
7
	Document() {}
7
	}
8
	
8

9
	public TimestampedEntity(String id, String name) {
9
	public Document(String text, String name) {
10
		this.id = id;
10
		this.text = text;
11
		this.name = name;
11
		this.name = name;
12
	}
12
	}
13

14
	public String getId() {
13
	public String getName() {
15
		return id;
14
		return 
16
	}
17

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

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

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

27
text = text;
28
	}
30
	public Date getTimestamp() {
29
	public Date getLastModified() {
31
		return timestamp;
30
		return 
32
	}
33
	public void setTimestamp(Date timestamp
31
lastModified;
32
	}
34
) {
33
	void setLastModified(Date lastModified) {
35
		this.timestamp = timestamp
34
		this.lastModified = lastModified
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