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 abstract class Item { private Long id; private String name; private Folder parent; /** * @return Returns the parent. */ public Folder getParent() { return parent; } /** * @param parent The parent to set. */ public void setParent(Folder parent) { this.parent = parent; } /** * @return Returns the id. */ public Long getId() { return id; } /** * @param id The id to set. */ public void setId(Long id) { this.id = id; } /** * @return Returns the name. */ public String getName() { return name; } /** * @param name The name to set. */ public void setName(String name) { this.name = name;
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/Item.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public static final class Ternary {
1
public abstract class Item {
2
	
3
	private String name;
2
	private Long id;
4
	
5
	private Foo foo;
3
	private String name;
6
	
7
	private Glarch glarch;
4
	private Folder parent;
8
	
9
	/**
5
	/**
10
		 * Returns the foo.
6
	 * @return Returns the 
11
		 * @return Foo
12
	
7
parent.
13
	 */
8
	 */
14
	
15
	public Foo getFoo() {
9
	public Folder getParent() {
16
	
17
		return foo;
10
		return parent;
18
	
19
	}
11
	}
20
		
21
		/**
12
	/**
22
		 * Returns the glarch.
13
	 * 
23
		 * @return Glarch
14
@param parent The parent to set.
24
		 */
15
	 */
25
	
26
	public Glarch getGlarch() {
16
	public void setParent(Folder parent) {
27
	
28
		return glarch;
17
		this.parent = parent;
29
	
30
	}
18
	}
31
		
32
		/**
19
	/**
33
		 * Returns the name.
20
	 * @return
34
		 * @return String
35
	
21
 Returns the id.
36
	 */
22
	 */
37
	
38
	public String getName() {
23
	public Long getId() {
39
	
40
		return name;
24
		return id;
41
		}
25
	}
42
		
43
	
44
	/**
26
	/**
45
		 * Sets the foo.
27
	
46
		 * @param foo The foo to set
28
 * @param id The id to set.
47
		 */
29
	 */
48
	
49
	public void setFoo(Foo foo) {
30
	public void setId(Long id) {
50
	
51
		this.foo = foo;
31
		this.id = id;
52
	
53
	}
32
	}
54
		
55
		/**
33
	/**
56
		 * Sets the glarch.
34
	 * 
57
		 * @param glarch The glarch to set
35
@return Returns the name.
58
		 */
36
	 */
59
	
60
	public void setGlarch(Glarch glarch) {
37
	public String getName() {
61
			this.glarch = glarch;
38
		return name;
62
	
63
	}
39
	}
64
		
65
	
66
	/**
40
	/**
67
		 * Sets the name.
41
	
68
		 * @param name The name to set
42
 * @param name The name to set.
69
		 */
43
	 */
70
	
71
	public void setName(String name) {
44
	public void setName(String name) {
72
	
73
		this.name = name;
45
		this.name = name;
74
		
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