public static final class Ternary { private String name; private Foo foo; private Glarch glarch; /** * Returns the foo. * @return Foo */ public Foo getFoo() { return foo; } /** * Returns the glarch. * @return Glarch */ public Glarch getGlarch() { return glarch; } /** * Returns the name. * @return String */ public String getName() { return name; } /** * Sets the foo. * @param foo The foo to set */ public void setFoo(Foo foo) { this.foo = foo; } /** * Sets the glarch. * @param glarch The glarch to set */ public void setGlarch(Glarch glarch) { this.glarch = glarch; } /** * Sets the name. * @param name The name to set */ public void setName(String name) { this.name = name;
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/Container.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 static final class Ternary {
1
public class Document extends Item {
2
	
3
	private String name;
2
	private Blob content;
4
	
5
	private Foo foo;
3
	private Calendar modified;
6
	
7
	private Glarch glarch;
4
	private Calendar created;
8
	
9
	/**
5
	/**
10
		 * Returns the foo.
6
	 * @return Returns the 
11
		 * @return Foo
12
	
7
created.
13
	 */
8
	 */
14
	
15
	public Foo getFoo() {
9
	public Calendar getCreated() {
16
	
17
		return foo;
10
		return created;
18
		}
11
	}
19
		
20
		/**
12
	/**
21
		 * Returns the glarch.
13
	 * 
22
		 * @return Glarch
23
	
14
@param created The created to set.
24
	 */
15
	 */
25
	
26
	public Glarch getGlarch() {
16
	public void setCreated(Calendar created) {
27
			return glarch;
17
		this.created = created;
28
	
29
	}
18
	}
30
		
31
		/**
19
	/**
32
		 * Returns the name.
20
	 * @return Returns the modified.
33
		 * @return String
21
	 *
34
		 */
35
		public String getName
22
/
36
() {
23
	public Calendar getModified() {
37
	
38
		return name;
24
		return modified;
39
	
40
	}
25
	}
41
		
42
		/**
26
	/**
43
		 * Sets the foo.
27
	
44
		 * @param foo The foo to set
28
 * @param modified The modified to set.
45
		 */
29
	 */
46
		public void setFoo(Foo foo) {
30
	public void setModified(Calendar modified) {
47
	
48
		this.foo = foo;
31
		this.modified = modified;
49
		}
32
	}
50
		
51
	
52
	/**
33
	/**
53
		 * Sets the glarch.
34
	 * 
54
		 * @param glarch The glarch to set
55
	
35
@return Returns the content.
56
	 */
36
	 */
57
	
58
	public void setGlarch(Glarch glarch) {
37
	public Blob getContent() {
59
			this.glarch = glarch;
38
		return content;
60
	
61
	}
39
	}
62
		
63
		/**
40
	/**
64
		 * Sets the name.
41
	
65
		 * @param name The name to set
42
 * @param content The content to set.
66
		 */
43
	 */
67
	
68
	public void setName(String name) {
44
	public void setContent(Blob content) {
69
	
70
		this.name = name;
45
		this.
71
		
46
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