public class Transaction { private Long id; private String description; private MonetoryAmount value; 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 MonetoryAmount getValue() { return value; } public void setValue(MonetoryAmount value) { this.value = value;
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/testsuite/src/test/java/org/hibernate/test/cut/Transaction.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 Transaction {
1
public static final class Ternary {
2
	private Long id;
2
		private String name;
3
	private String description;
3
		private Foo foo;
4
	private MonetoryAmount value;
4
		private 
5
	
6
	public String getDescription
5
Glarch glarch;
6
		/**
7
		 * Returns the foo.
8
		 * @return Foo
9
		 */
7
() {
10
		public Foo getFoo() {
8
		return description;
11
			return 
9
	}
12
foo;
13
		}
14
		
15
		/**
16
		 * Returns the glarch.
17
		 * @return Glarch
18
		 */
10
	
19
	
11
	public void setDescription(String description) {
20
	public 
12
		this.description = description;
13
	}
14
	
21
Glarch getGlarch() {
22
			return glarch;
23
		}
24
		
25
		/**
26
		 * Returns the name.
27
		 * @return String
28
		 */
15
	public Long getId() {
29
		public String getName() {
16
		return id;
30
			return name;
17
	}
31
		}
18
	
32
	
33
	
34
		/**
35
		 * Sets the foo.
36
		 * @param foo The foo to set
37
		 */
19
	public void setId(Long id) {
38
		public void setFoo(Foo foo) {
20
		this.id = id;
39
			this.foo = foo;
21
	}
40
		}
22
	
41
		
23
	public MonetoryAmount getValue() {
42
	
24
		return value;
25
	}
43
	/**
44
		 * Sets the glarch.
45
		 * @param glarch The glarch to set
46
		 */
47
		public void setGlarch(Glarch glarch) {
48
			this.glarch = glarch;
49
		}
50
		
51
		/**
52
		 * Sets the name.
53
		 * @param name The name to set
54
		 */
26
	
55
	
27
	public void setValue(MonetoryAmount value) {
56
	public void setName(String name) {
28
		this.value = value;
57
			this.name = name;
29
	
58
		
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