public class Item { private Long id; private String name; private String description; public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name
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
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/cache-jbosscache2/src/test/java/org/hibernate/test/cache/jbc2/functional/Item.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/Container.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Item {
1
public 
2
    private Long id;
3
    private String name;
4
    private String description;
5
    public String getDescription() {
6
        return description;
7
    }
8
    public void setDescription(String description) {
9
        this.description = description;
10
    }
11
    
2
static final class Ternary {
3
		private String name;
4
		private Foo foo;
5
		private Glarch glarch;
6
		/**
7
		 * Returns the foo.
8
		 * @return Foo
9
		 */
10
		public Foo getFoo() {
11
			return foo;
12
		}
13
		
14
		/**
15
		 * Returns the glarch.
16
		 * @return Glarch
17
		 */
18
		public Glarch getGlarch() {
19
			return glarch;
20
		}
21
		
22
		/**
23
		 * Returns the name.
24
		 * @return String
25
		 */
12
public Long getId() {
26
		public String getName() {
13
        return id;
14
    }
15
    public void setId(Long id) {
16
        this.id = id;
17
    }
18
    public String getName() {
19
        return name;
20
    }
21
    
27
			return name;
28
		}
29
		
30
		/**
31
		 * Sets the foo.
32
		 * @param foo The foo to set
33
		 */
34
		public void setFoo(Foo foo) {
35
			this.foo = foo;
36
		}
37
		
38
		/**
39
		 * Sets the glarch.
40
		 * @param glarch The glarch to set
41
		 */
42
		public void setGlarch(Glarch glarch) {
43
			this.glarch = glarch;
44
		}
45
		
46
		/**
47
		 * Sets the name.
48
		 * @param name The name to set
49
		 */
22
public void setName(String name) {
50
		public void setName(String name) {
23
        this.name = name
51
			this.name = name
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