public class A { private Long id; private String name; private E forward; /** * Returns the id. * @return Long */ public Long getId() { return id; } /** * Returns the name. * @return String */ public String getName() { return name; } /** * Sets the id. * @param id The id to set */ public void setId(Long id) { this.id = id; } /** * Sets the name. * @param name The name to set */ public void setName(String name) { this.name = name; } public E getForward() { return forward; } public void setForward(E e) { forward = e
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/A.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 A {
1
public class Document extends Item {
2
	private Long id;
2
	private 
3
	private String name;
4
	private E forwar
3
Blob content;
4
	private Calendar modified;
5
d;
5
	private Calendar created;
6
	
7
	/**
6
	/**
8
	 * Returns the id.
7
	 * @return Returns the 
9
	 * @return Long
8
created.
10
	 */
9
	 */
11
	public Long getId() {
10
	public Calendar getCreated() {
12
		return id;
11
		return created;
13
	}
12
	}
14
	
15
	/**
13
	/**
16
	 * Returns the name.
14
	 * 
17
	 * @return String
15
@param created The created to set.
16
	 */
17
	public void setCreated(Calendar created) {
18
		this.created = created;
19
	}
20
	/**
21
	 * @return Returns the modified.
18
	 */
22
	 */
19
	public String getName() {
23
	public Calendar getModified() {
20
		return name;
24
		return modified;
21
	}
25
	}
22
	
23
	/**
26
	/**
24
	 * Sets the id.
27
	 * 
25
	 * @param id The id to set
28
@param modified The modified to set.
26
	 */
29
	 */
27
	public void setId(Long id) {
30
	public void setModified(Calendar modified) {
28
		this.id = id;
31
		this.modified = modified;
29
	}
32
	}
30
	
31
	/**
33
	/**
32
	 * Sets the name.
34
	 * 
33
	 * @param name The name to set
35
@return Returns the content.
34
	 */
36
	 */
35
	public void setName(String name) {
37
	public Blob getContent() {
36
		this.name = name;
38
		
37
	}
38
	
39
	public E getForward() {
40
		return forward;
41
	}
42
	public void setForward(E e
39
return content;
40
	}
41
	/**
42
	 * @param content The content to set.
43
	 */
43
) {
44
	public void setContent(Blob content) {
44
		forward = e
45
		this.content = content
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