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