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 class A { private Long id; private String name; private E forward; /** * Returns the id. * @return Long */ public Long getId() { return id; } /** * Returns the name. * @return String */ public String getName() { return name; } /** * Sets the id. * @param id The id to set */ public void setId(Long id) { this.id = id; } /** * Sets the name. * @param name The name to set */ public void setName(String name) { this.name = name; } public E getForward() { return forward; } public void setForward(E e) { forward = e
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/A.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Transaction {
1
public class A {
2
	private Long id;
2
	private Long id;
3
	private String description;
3
	private String 
4
	private MonetoryAmount value;
5
	
4
name;
5
	private E forward;
6
	
7
	/**
8
	 * Returns the id.
9
	 * @return Long
10
	 */
6
	public String getDescription() {
11
	public Long getId() {
7
		return description;
12
		return 
8
	}
9
	
10
	public void setDescription(String description) {
11
		this.description = description;
12
	}
13
	
13
id;
14
	}
15
	
16
	/**
17
	 * Returns the name.
18
	 * @return String
19
	 */
14
	public Long getId() {
20
	public String getName() {
15
		return 
21
		return name;
22
	}
23
	
24
	/**
16
id;
25
	 * Sets the id.
17
	}
26
	
18
	
27
 * @param id The id to set
28
	 */
19
	public void setId(Long id) {
29
	public void setId(Long id) {
20
		this.id = id;
30
		this.id = id;
21
	}
31
	}
22
	
32
	
23
	public MonetoryAmount getValue
33
	/**
34
	 * Sets the name.
35
	 * @param name The name to set
36
	 */
37
	public void setName(String name) {
38
		this.name = name;
39
	}
40
	
24
() {
41
	public E getForward() {
25
		return value;
42
		return forward;
26
	}
43
	}
27
	
28
	public void setValue(MonetoryAmount value) {
44
	public void set
29
		this.value = valu
45
Forward(E e) {
30
e
46
		forward = e
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