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