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 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/cut/Transaction.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 class Transaction {
1
public abstract class Item {
2
	private Long id;
2
	private Long id;
3
	private String description;
3
	private String 
4
	private MonetoryAmount value;
5
	
6
	public String getDescription
4
name;
5
	private Folder parent;
6
	/**
7
	 * @return Returns the parent.
8
	 */
7
() {
9
	public Folder getParent() {
8
		return description;
10
		return parent;
9
	}
11
	}
10
	
12
	
11
	public void setDescription(String description
13
/**
14
	 * @param parent The parent to set.
15
	 */
12
) {
16
	public void setParent(Folder parent) {
13
		this.description = description;
17
		this.parent = parent;
14
	}
18
	}
15
	
19
	/**
20
	 * @return Returns the id.
21
	 */
16
	public Long getId() {
22
	public Long getId() {
17
		return id;
23
		return id;
18
	}
24
	}
19
	
25
	/**
26
	 * @param id The id to set.
27
	 */
20
	public void setId(Long id) {
28
	public void setId(Long id) {
21
		this.id = id;
29
		this.id = id;
22
	}
30
	}
23
	
31
	
24
	public MonetoryAmount getValu
32
/**
33
	 * @return Returns the name.
34
	 */
25
e() {
35
	public String getName() {
26
		return value;
36
		return name;
27
	}
37
	}
28
	
38
	
29
	public void setValue(MonetoryAmount valu
39
/**
40
	 * @param name The name to set.
41
	 */
30
e) {
42
	public void setName(String name) {
31
		this.value = value
43
		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