public class Student { private long studentNumber; private String name; private Course preferredCourse; private Set enrolments = new HashSet(); public String getName() { return name; } public void setName(String name) { this.name = name; } public long getStudentNumber() { return studentNumber; } public void setStudentNumber(long studentNumber) { this.studentNumber = studentNumber; } public Course getPreferredCourse() { return preferredCourse; } public void setPreferredCourse(Course preferredCourse) { this.preferredCourse = preferredCourse; } public Set getEnrolments() { return enrolments; } public void setEnrolments(Set employments) { this.enrolments = employments;
public class SubMulti extends Multi { private float amount; private SubMulti parent; private List children; private List moreChildren; /** * Returns the amount. * @return float */ public float getAmount() { return amount; } /** * Sets the amount. * @param amount The amount to set */ public void setAmount(float amount) { this.amount = amount; } /** * Returns the childen. * @return List */ public List getChildren() { return children; } /** * Returns the parent. * @return SubMulti */ public SubMulti getParent() { return parent; } /** * Sets the childen. * @param childen The childen to set */ public void setChildren(List children) { this.children = children; } /** * Sets the parent. * @param parent The parent to set */ public void setParent(SubMulti parent) { this.parent = parent; } /** * Returns the moreChildren. * @return List */ public List getMoreChildren() { return moreChildren; } /** * Sets the moreChildren. * @param moreChildren The moreChildren to set */ public void setMoreChildren(List moreChildren) { this.moreChildren = moreChildren;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/criteria/Student.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/SubMulti.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Student {
1
public class SubMulti extends Multi {
2
	private long studentNumber;
2
	private flo
3
	private String name;
4
	private Course preferredCourse;
5
	private Set enrolments = new HashSet();
3
at amount;
4
	private SubMulti parent;
5
	private List children;
6
	private List moreChildren;
7
	/**
8
	 * Returns the amount.
9
	 * @return float
10
	 */
6
	public String getName() {
11
	public float getAmount() {
7
		return name;
12
		return amount;
8
	}
13
	}
9
	public void setName(String name
14
	
15
	/**
16
	 * Sets the amount.
17
	 * @param amount The amount to set
18
	 */
10
) {
19
	public void setAmount(float amount) {
11
		this.name = name;
20
		this.amount = amount;
12
	}
21
	}
13
	public long getStudentNumber() {
14
		return studentNumber;
15
	}
16
	public void setStudentNumber(long studentNumber) {
17
		this.studentNumber = studentNumber;
18
	}
19
	public Course getPreferredCourse() {
20
		return preferredCour
22
	
23
	/**
24
	 * Returns the childen.
25
	 * @return List
26
	 */
27
	public List getChildren() {
28
		return children;
29
	}
30
	
31
	/**
32
	 * Returns the parent.
33
	 * @return SubMulti
34
	 */
35
	public SubMulti getParent() {
36
		return parent;
37
	}
38
	
39
	/**
40
	 * Sets the childen.
41
	 * @param childen The childen to set
42
	 */
43
	public void setChildren(List children) {
44
		this.children = children;
45
	}
46
	
47
	/**
48
	 * Sets the parent.
21
se;
49
	 * @param parent The parent to set
22
	}
50
	
51
 */
23
	public void setPreferredCourse(Course preferredCourse) {
52
	public void setParent(SubMulti parent) {
24
		this.preferredCourse = preferredCourse;
53
		this.pare
25
	}
54
nt = parent;
55
	}
56
	
57
	/**
58
	 * Returns the moreChildren.
59
	 * @return List
60
	 */
26
	public Set getEnrolments() {
61
	public List getMoreChildren() {
27
		return enrolments;
62
		return 
28
	}
63
moreChildren;
64
	}
65
	/**
66
	 * Sets the moreChildren.
67
	 * @param moreChildren The moreChildren to set
68
	 */
29
	public void setEnrolments(Set employments) {
69
	public void set
30
		this.enrolments = employments
70
MoreChildren(List moreChildren) {
31
;
71
		this.moreChildren = moreChildren;
32
	
72
	
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