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 DataPoint { private long id; private BigDecimal x; private BigDecimal y; private String description; /** * @return Returns the description. */ public String getDescription() { return description; } /** * @param description The description to set. */ public void setDescription(String description) { this.description = description; } /** * @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 x. */ public BigDecimal getX() { return x; } /** * @param x The x to set. */ public void setX(BigDecimal x) { this.x = x; } /** * @return Returns the y. */ public BigDecimal getY() { return y; } /** * @param y The y to set. */ public void setY(BigDecimal y) { this.y = y;
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/readonly/DataPoint.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Student {
1
public class DataPoint {
2
	private long studentNumber;
2
	private long 
3
	private String name;
4
	private Course preferredCourse;
5
	private Set enrolments = new HashSet();
3
id;
4
	private BigDecimal x;
5
	private BigDecimal y;
6
	private String description;
7
	/**
8
	 * @return Returns the description.
9
	 */
6
	public String getName() {
10
	public String getDescription() {
7
		return name;
11
		return 
8
	}
12
description;
13
	}
14
	/**
15
	 * @param description The description to set.
16
	 */
9
	public void setName(String name) {
17
	public void set
10
		this.name = name;
11
	}
18
Description(String description) {
19
		this.description = description;
20
	}
21
	/**
22
	 * @return Returns the id.
23
	 */
12
	public long getStudentNumber() {
24
	public long getId() {
13
		return studentNumber;
25
		return 
14
	}
26
id;
27
	}
28
	/**
29
	 * @param id The id to set.
30
	 */
15
	public void setStudentNumber(long studentNumber) {
31
	public void set
16
		this.studentNumber = studentNumber;
17
	}
18
	public Course getPreferredCourse() {
19
		return preferredCourse;
20
	}
21
	public void setPreferredCourse(Course preferredCourse) {
22
		this.preferredCourse = preferredCourse;
23
	}
24
	public Set getEnrolments() {
25
		return enrolments;
26
	}
27
	public void setEnrolments(Set employments) {
28
		this.enrolments = employments
32
Id(long id) {
33
		this.id = id;
34
	}
35
	/**
36
	 * @return Returns the x.
37
	 */
38
	public BigDecimal getX() {
39
		return x;
40
	}
41
	/**
42
	 * @param x The x to set.
43
	 */
44
	public void setX(BigDecimal x) {
45
		this.x = x;
46
	}
47
	/**
48
	 * @return Returns the y.
49
	 */
50
	public BigDecimal getY() {
51
		return y;
52
	}
53
	/**
54
	 * @param y The y to set.
55
	 */
56
	public void setY(BigDecimal y) {
29
;
57
		this.y = y;
30
	
58
	
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