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