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