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
public class Resource { private Long id; private String name; private User owner; public Resource() { } public Resource(String name, User owner) { this.name = name; this.owner = owner; } 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 User getOwner() { return owner; } public void setOwner(User owner) { this.owner = owner
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/stateless/Document.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/stateless/fetching/Resource.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Document {
1
public class Resource {
2
	
2
	
3
	private String text;
3
private Long id;
4
	private String name;
4
	private String name;
5
	private Date lastModified;
5
	private 
6
	Document
6
User owner;
7
() {
7
	public Resource() {
8
}
8
	}
9
	
10
	public Document(String text, String name) {
9
	public 
11
		this.text = text
10
Resource(String name, User owner) {
12
;
11
		this.name = name;
13
		this.name = name;
12
		this.owner = owner;
14
	}
13
	}
15
	public String getName() {
14
	public Long getId() {
16
		return name;
15
		return id;
17
	}
16
	}
18
	public void setName(String name) {
17
	public void set
19
		this.name = name
18
Id(Long id) {
20
;
19
		this.id = id;
21
	}
20
	}
22
	public String getText() {
21
	public String getName() {
23
		return text;
22
		return name;
24
	}
23
	}
25
	public void setText(String text) {
24
	public void setName(String name) {
26
		this.text = text;
25
		this.name = name;
27
	}
26
	}
28
	public Date getLastModified() {
27
	public 
29
		return lastModified;
30
	}
31
	void setLastModified(Date lastModified) {
32
		this.lastModified = lastModified
28
User getOwner() {
29
		return owner;
30
	}
31
	public void setOwner(User owner) {
32
		this.owner = owner
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