public class Employee {
private Long id;
private Person person;
public Person getPerson() {
return person;
}
public void setPerson(Person person) {
this.person = person;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
static public class ProductId implements Serializable {
String orgid;
String productnumber;
public String getProductnumber() {
return productnumber;
}
public void setProductnumber(String ordernumber) {
this.productnumber = ordernumber;
}
public String getOrgid() {
return orgid;
}
public void setOrgid(String orgid) {
this.orgid = orgid;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/onetoone/link/Employee.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/sql/hand/Product.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class Employee {↵ | | 1 | static public class ProductId implements Serializable {
↵
|
2 | private Long id;↵ | | 2 | String orgid;
↵
|
3 | private Person person;↵ | | 3 | ↵
|
| | | 4 | String productnumber;↵
|
4 | public Person getPerson() {↵ | | 5 | public String getProductnumber() {↵
|
|
5 | return person;↵ | | 6 | return p↵
|
| | | 7 | roductnumber;↵
|
6 | }↵ | | 8 | }
↵
|
7 | public void setPerson(Person person) {↵ | | 9 | public void setProductnumber(String ordernumber) {
↵
|
8 | this.person = person;↵ | | 10 | this.p↵
|
9 | }↵ | | |
|
| | | 11 | roductnumber = ordernumber;↵
|
| | | 12 | }↵
|
10 | public Long getId() {↵ | | 13 | public String getOrgid() {
↵
|
11 | return id;↵ | | 14 | return orgid;
↵
|
12 | }↵ | | 15 | ↵
|
| | | 16 | }↵
|
13 | public void setId(Long id) {↵ | | 17 | public void setOrgid(String orgid) {
↵
|
14 | this.id = id;↵ | | 18 | this.orgid = orgid;
↵
|
15 | | | 19 |
|
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 |