public class MyEntity {
private Long id;
private String name;
public MyEntity() {
}
public MyEntity(String name) {
this.name = name;
}
public Long getId() {
return id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name
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/generatedkeys/seqidentity/MyEntity.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 MyEntity {↵ | | 1 | static public class ↵
|
2 | private Long id;↵ | | |
|
3 | private String name;↵ | | |
|
| | | 2 | ProductId implements Serializable {↵
|
| | | 3 | String orgid;↵
|
| | | 4 | String productnumber;↵
|
4 | public MyEntity() {↵ | | 5 | public ↵
|
5 | }↵ | | |
|
| | | 6 | String getProductnumber() {↵
|
| | | 7 | return productnumber;↵
|
| | | 8 | }↵
|
6 | public MyEntity(String name) {↵ | | 9 | public void setProductnumber(String ordernumber) {↵
|
7 | this.name = name;↵ | | 10 | this.↵
|
8 | }↵ | | |
|
|
9 | public Long getId() {↵ | | |
|
10 | return id;↵ | | 11 | productnumber = ordernumber;↵
|
11 | }↵ | | 12 | }↵
|
|
12 | public String getName() {↵ | | 13 | public String getOrgid() {↵
|
13 | return name;↵ | | 14 | return orgid;↵
|
14 | }↵ | | 15 | }↵
|
|
15 | public void setName(String name) {↵ | | 16 | public void setOrgid(String orgid) {↵
|
16 | this.name = name | | 17 | 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 |