public class Person {
private Long id;
private Identity identity;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Identity getIdentity() {
return identity;
}
public void setIdentity(Identity identity) {
this.identity = identity
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/propertyref/component/partial/Person.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 Person {↵ | | 1 | static public class P↵
|
2 | private Long id;↵ | | |
|
3 | private Identity identity↵ | | 2 | roductId implements Serializable {↵
|
| | | 3 | String orgid;↵
|
4 | ;↵ | | 4 | String productnumber;↵
|
5 | ↵ | | 5 | ↵
|
6 | public Long getId() {↵ | | 6 | public String getProductnumber() {↵
|
7 | return id;↵ | | 7 | return productnumber;↵
|
8 | }↵ | | 8 | }↵
|
9 | public void setId(Long id) {↵ | | 9 | public void setProductnumber(String ordernumber) {↵
|
10 | this.id = id;↵ | | 10 | this.productnumber = ordernumber;↵
|
11 | }↵ | | 11 | }↵
|
12 | public Identity getIdentity() {↵ | | 12 | public String getOrgid() {↵
|
13 | return identity;↵ | | 13 | return orgid;↵
|
14 | }↵ | | 14 | }↵
|
15 | public void setIdentity(Identity identity) {↵ | | 15 | public void setOrgid(String orgid) {↵
|
16 | this.identity = identity | | 16 | this.orgid = orgid
|
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 |