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

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