public class StateProvince {
private Long id;
private String name;
private String isoCode;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getIsoCode() {
return isoCode;
}
public void setIsoCode(String isoCode) {
this.isoCode = isoCode
public class MyEntity {
private Long id;
private String name;
private MyEntity other;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public MyEntity getOther() {
return other;
}
public void setOther(MyEntity other) {
this.other = other
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/hql/StateProvince.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/jpa/MyEntity.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class StateProvince {↵ | | 1 | public class MyEntity {
↵
|
2 | private Long id;↵ | | 2 | private Long id;
↵
|
3 | private String name;↵ | | 3 | private String name;
↵
|
4 | private String isoCode;↵ | | 4 | private ↵
|
| | | 5 | MyEntity other;↵
|
| | | 6 |
↵
|
5 | public Long getId() {↵ | | 7 | public Long getId() {
↵
|
6 | return id;↵ | | 8 | return id;
↵
|
7 | }↵ | | 9 | }↵
|
|
| | | 10 |
↵
|
8 | public void setId(Long id) {↵ | | 11 | public void setId(Long id) {
↵
|
9 | this.id = id;↵ | | 12 | this.id = id;
↵
|
10 | }↵ | | 13 | }↵
|
|
| | | 14 |
↵
|
11 | public String getName() {↵ | | 15 | public String getName() {
↵
|
12 | return name;↵ | | 16 | return name;
↵
|
13 | }↵ | | 17 | }↵
|
|
| | | 18 |
↵
|
14 | public void setName(String name) {↵ | | 19 | public void setName(String name) {
↵
|
15 | this.name = name;↵ | | 20 | this.name = name;
↵
|
16 | }↵ | | 21 | }↵
|
|
| | | 22 |
↵
|
17 | public String getIsoCode() {↵ | | 23 | public MyEntity getOther() {
↵
|
18 | return isoCode;↵ | | 24 | return ↵
|
19 | }↵ | | |
|
| | | 25 | other;↵
|
| | | 26 | }↵
|
| | | 27 |
↵
|
20 | public void setIsoCode(String isoCode) {↵ | | 28 | public void setOther(MyEntity other) {
↵
|
21 | this.isoCode = isoCode | | 29 | this.other = other
|
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 |