public class Master implements Serializable {
private Long id;
private String name;
private Detail detail;
public Detail getDetail() {
return detail;
}
public void setDetail(Detail detail) {
this.detail = detail;
}
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 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/formulajoin/Master.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 Master implements Serializable {↵ | | 1 | public class ParentInfo {
↵
|
2 | private Long id;↵ | | 2 | private Long id;
↵
|
3 | private String name;↵ | | 3 | private ↵
|
4 | private Detail detail;↵ | | |
|
5 | public Detail getDetail↵ | | 4 | Parent owner;↵
|
| | | 5 | private String info;↵
|
|
6 | () {↵ | | 6 | public ParentInfo() {
↵
|
7 | return detail;↵ | | 7 | ↵
|
8 | }↵ | | |
|
9 | public void setDetail(Detail detail↵ | | 8 | }↵
|
|
10 | ) {↵ | | 9 | public ParentInfo(String info) {
↵
|
11 | this.detail = detail;↵ | | 10 | this.↵
|
12 | }↵ | | 11 | info = info;↵
|
| | | 12 | }↵
|
| | | 13 |
↵
|
13 | public Long getId() {↵ | | 14 | public Long getId() {
↵
|
14 | return id;↵ | | 15 | return id;
↵
|
15 | }↵ | | 16 | }↵
|
16 | public void setId(Long id↵ | | |
|
|
| | | 17 | public Parent getOwner() {↵
|
| | | 18 | return owner;↵
|
| | | 19 | }↵
|
|
17 | ) {↵ | | 20 | public void setOwner(Parent owner) {
↵
|
18 | this.id = id;↵ | | 21 | this.↵
|
19 | }↵ | | 22 | owner = owner;↵
|
| | | 23 | }↵
|
| | | 24 |
↵
|
20 | public String getName() {↵ | | 25 | public String getInfo() {
↵
|
21 | return name;↵ | | 26 | return ↵
|
22 | }↵ | | 27 | info;↵
|
| | | 28 | }↵
|
| | | 29 |
↵
|
23 | public void setName(String name) {↵ | | 30 | public void setInfo(String info) {
↵
|
24 | this.name = name;↵ | | 31 | this.info = info;
↵
|
25 | | | 32 |
|
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 |