public class DocumentImpl extends ItemImpl implements Document { 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
public class MyEntity { private Long id; private String name; private MyEntity other; 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 MyEntity getOther() { return other; } public void setOther(MyEntity other) { this.other = other
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/interfaceproxy/DocumentImpl.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/jpa/MyEntity.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class DocumentImpl extends ItemImpl implements Document {
1
public class MyEntity {
2
	private Blob content;
2
	private 
3
	private Calendar modified;
4
	private Calendar created;
5
	/**
6
	 * @return Returns the created.
7
	 */
8
	public Calendar getCreate
3
Long id;
4
	private String name;
5
	private MyEntity other;
9
d() {
6
	public Long getId() {
10
		return created;
7
		return id;
11
	}
8
	}
12
	/**
13
	 * @param created The created to set.
14
	 */
15
	public void setCreated(Calendar create
16
d) {
9
	public void setId(Long id) {
17
		this.created = created;
10
		this.id = id;
18
	}
11
	}
19
	/**
20
	 * @return Returns the modified.
21
	 */
22
	public Calendar getModified
23
() {
12
	public String getName() {
24
		return modified;
13
		return 
25
	}
26
	/**
27
	 * @param modified The modified to set.
28
	 */
29
	public void setModified(Calendar modified
14
name;
15
	}
30
) {
16
	public void setName(String name) {
31
		this.modified = modified;
17
		this.
32
	}
33
	/**
34
	 * @return Returns the content.
35
	 */
18
name = name;
19
	}
20

36
	public Blob getContent() {
21
	public MyEntity getOther() {
37
		return content;
22
		return 
38
	}
39
	/**
40
	 * @param content The content to set.
41
	 */
42
	public void setContent(Blob content
23
other;
24
	}
43
) {
25
	public void setOther(MyEntity other) {
44
		this.content = content
26
		this.other = other
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