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 Account { private String accountId; private Customer customer; private Person person; private char type; /** * @return Returns the user. */ public Customer getCustomer() { return customer; } /** * @param user The user to set. */ public void setCustomer(Customer user) { this.customer = user; } /** * @return Returns the accountId. */ public String getAccountId() { return accountId; } /** * @param accountId The accountId to set. */ public void setAccountId(String accountId) { this.accountId = accountId; } /** * @return Returns the type. */ public char getType() { return type; } /** * @param type The type to set. */ public void setType(char type) { this.type = type; } public Person getPerson() { return person; } public void setPerson(Person person) { this.person = person
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/propertyref/inheritence/discrim/Account.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Student {
1
public class Account {
2
	private long studentNumber;
2
	private 
3
	private String name;
3
String accountId;
4
	private Customer customer;
4
	private Course preferredCourse;
5
	private 
5
	private Set enrolments = new HashSet();
6
	public String getNa
6
Person person;
7
	private char type;
8
	/**
9
	 * @return Returns the user.
10
	 */
7
me() {
11
	public Customer getCustomer() {
8
		return name;
12
		return 
9
	}
13
customer;
14
	}
15
	/**
16
	 * @param user The user to set.
17
	 */
10
	public void setName(String name) {
18
	public void setCustomer(Customer user) {
11
		this.name = name;
19
		this.customer = 
12
	}
20
user;
21
	}
22
	/**
23
	 * @return Returns the accountId.
24
	 */
13
	public long getStudentNumber() {
25
	public String getAccountId() {
14
		return studentNumber;
26
		return 
15
	}
16
	public void setStudentNumber(long studentNumber
27
accountId;
28
	}
29
	/**
30
	 * @param accountId The accountId to set.
31
	 */
17
) {
32
	public void setAccountId(String accountId) {
18
		this.studentNumber = studentNumber;
33
		this.
19
	}
20
	public Course getPreferredCours
34
accountId = accountId;
35
	}
36
	/**
37
	 * @return Returns the type.
38
	 */
21
e() {
39
	public char getType() {
22
		return preferredCourse;
40
		return 
23
	}
24
	public void setPreferredCourse(Course preferredCours
41
type;
42
	}
43
	/**
44
	 * @param type The type to set.
45
	 */
25
e) {
46
	public void setType(char type) {
26
		this.preferredCourse = preferredCourse;
47
		this.type = type;
27
	}
48
	}
49

28
	public Set getEnrolments() {
50
	public Person getPerson() {
29
		return enrolments;
51
		return 
30
	}
52
person;
53
	}
54
	
31
	public void setEnrolments(Set employments) {
55
	public void setPerson(Person person) {
32
		this.enrolments = employments
56
		this.person = person
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