public class Customer extends User {
private String company;
protected Customer() {
super();
}
public Customer(String name, char sex, String username, String company) {
super( name, sex, username );
this.company = company;
}
public String getCompany() {
return company;
}
public void setCompany(String company) {
this.company = company
public class Employee extends User {
private Date hireDate;
protected Employee() {
super();
}
public Employee(String name, char sex, String username, Date hireDate) {
super( name, sex, username );
this.hireDate = hireDate;
}
public Date getHireDate() {
return hireDate;
}
public void setHireDate(Date hireDate) {
this.hireDate = hireDate
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/filter/hql/Customer.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/filter/hql/Employee.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class Customer extends User {↵ | | 1 | public class Employee extends User {↵
|
2 | private String company;↵ | | 2 | private Date hireDate;↵
|
|
3 | protected Customer() {↵ | | 3 | protected Employee() {↵
|
4 | super();↵ | | 4 | super();↵
|
5 | }↵ | | 5 | }↵
|
|
6 | public Customer(String name, char sex, String username, String company) {↵ | | 6 | public Employee(String name, char sex, String username, Date hireDate) {↵
|
7 | super( name, sex, username );↵ | | 7 | super( name, sex, username );↵
|
8 | this.company = company;↵ | | 8 | this.↵
|
9 | }↵ | | |
|
|
10 | public String getCompany↵ | | 9 | hireDate = hireDate;↵
|
| | | 10 | }↵
|
|
11 | () {↵ | | 11 | public Date getHireDate() {↵
|
12 | return company;↵ | | 12 | return hireDate;↵
|
13 | }↵ | | 13 | }↵
|
|
14 | public void setCompany(String company) {↵ | | 14 | public void set↵
|
15 | this.company = company | | 15 | HireDate(Date hireDate) {↵
|
| | | 16 | this.hireDate = hireDate
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | |
Number of node comparisons | 0 |