public class Object2 { private Long id; private String dummy; private MainObject belongsToMainObj; public Long getId() { return id; } public void setId(Long l) { this.id = l; } public String getDummy() { return dummy; } public void setDummy(String string) { dummy = string; } public MainObject getBelongsToMainObj() { return belongsToMainObj; } public void setBelongsToMainObj(MainObject object) { belongsToMainObj = object;
public class Document extends Item { private Blob content; private Calendar modified; private Calendar created; /** * @return Returns the created. */ public Calendar getCreated() { return created; } /** * @param created The created to set. */ public void setCreated(Calendar created) { this.created = created; } /** * @return Returns the modified. */ public Calendar getModified() { return modified; } /** * @param modified The modified to set. */ public void setModified(Calendar modified) { this.modified = modified; } /** * @return Returns the content. */ public Blob getContent() { return content; } /** * @param content The content to set. */ public void setContent(Blob content) { this.content = content;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/Object2.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/mixed/Document.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Object2 {
1
public class Document extends Item {
2
	private Long id;
2
	private 
3
	private String dummy;
4
	private MainObject belongsToMainObj;
5
	public Long getI
3
Blob content;
4
	private Calendar modified;
5
	private Calendar created;
6
	/**
7
	 * @return Returns the created.
8
	 */
6
d() {
9
	public Calendar getCreated() {
7
		return id;
10
		return created;
8
	}
11
	}
9
	public void setId(Long l
12
	/**
13
	 * @param created The created to set.
14
	 */
10
) {
15
	public void setCreated(Calendar created) {
11
		this.id = l;
16
		this.created = created;
12
	}
17
	}
13
	
18
	
14
	public String getDummy
19
/**
20
	 * @return Returns the modified.
21
	 */
15
() {
22
	public Calendar getModified() {
16
		return dummy;
23
		return 
17
	}
18
	public void setDummy(String string
24
modified;
25
	}
26
	/**
27
	 * @param modified The modified to set.
28
	 */
19
) {
29
	public void setModified(Calendar modified) {
20
		dummy = string;
30
		
21
	}
22
	public MainObject getBelongsToMainObj
31
this.modified = modified;
32
	}
33
	/**
34
	 * @return Returns the content.
35
	 */
23
() {
36
	public Blob getContent() {
24
		return belongsToMainObj;
37
		return 
25
	}
26
	public void setBelongsToMainObj(MainObject objec
38
content;
39
	}
40
	/**
41
	 * @param content The content to set.
42
	 */
27
t) {
43
	public void setContent(Blob content) {
28
		belongsToMainObj = object;
44
		this.content = content;
29
	
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