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