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 ChildInfo {
private Long id;
private Child owner;
private String info;
public ChildInfo() {
}
public ChildInfo(String info) {
this.info = info;
}
public Long getId() {
return id;
}
public Child getOwner() {
return owner;
}
public void setOwner(Child 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/ChildInfo.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class Master implements Serializable {↵ | | 1 | public class ChildInfo {
↵
|
2 | private Long id;↵ | | 2 | private Long id;
↵
|
3 | private String name;↵ | | 3 | private ↵
|
4 | private Detail detail;↵ | | |
|
5 | public Detail getDetail↵ | | 4 | Child owner;↵
|
| | | 5 | private String info;↵
|
|
6 | () {↵ | | 6 | public ChildInfo() {
↵
|
7 | return detail;↵ | | 7 | ↵
|
8 | }↵ | | |
|
9 | public void setDetail(Detail detail↵ | | 8 | }↵
|
|
10 | ) {↵ | | 9 | public ChildInfo(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 | }↵
|
| | | 17 |
↵
|
16 | public void setId(Long id↵ | | 18 | public Child getOwner() {↵
|
| | | 19 | return owner;↵
|
| | | 20 | }↵
|
|
17 | ) {↵ | | 21 | public void setOwner(Child owner) {
↵
|
18 | this.id = id;↵ | | 22 | this.↵
|
19 | }↵ | | 23 | owner = owner;↵
|
| | | 24 | }↵
|
| | | 25 |
↵
|
20 | public String getName() {↵ | | 26 | public String getInfo() {
↵
|
21 | return name;↵ | | 27 | return ↵
|
22 | }↵ | | 28 | info;↵
|
| | | 29 | }↵
|
| | | 30 |
↵
|
23 | public void setName(String name) {↵ | | 31 | public void setInfo(String info) {
↵
|
24 | this.name = name | | 32 | 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 |