public class DeleteOrphanChild {
private Long id;
private Parent parent;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Parent getParent() {
return parent;
}
public void setParent(Parent parent) {
this.parent = parent
public class Employee implements Serializable {
private Integer id;
private Collection employers;
public Integer getId() {
return id;
}
public void setId(Integer integer) {
id = integer;
}
public Collection getEmployers() {
return employers;
}
public void setEmployers(Collection employers) {
this.employers = employers
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/cascade/DeleteOrphanChild.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/ops/Employee.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class DeleteOrphanChild {↵ | | 1 | public class Employee implements Serializable {↵
|
2 | private Long id;↵ | | 2 | private Integer id;↵
|
3 | private Parent parent;↵ | | 3 | private Collection employers;↵
|
|
|
4 | public Long getId() {↵ | | 4 | public Integer getId() {↵
|
5 | return id;↵ | | 5 | return id;↵
|
6 | }↵ | | 6 | }↵
|
|
7 | public void setId(Long id) {↵ | | 7 | public void setId(Integer integer) {↵
|
8 | this.id = id;↵ | | 8 | id = integer;↵
|
9 | }↵ | | 9 | }↵
|
| | | 10 | ↵
|
| | | 11 | ↵
|
10 | public Parent getParent() {↵ | | 12 | public Collection getEmployers() {↵
|
11 | return parent;↵ | | 13 | return employers;↵
|
12 | }↵ | | 14 | }↵
|
| | | 15 | ↵
|
13 | public void setParent(Parent parent) {↵ | | 16 | public void setEmployers(Collection employers) {↵
|
14 | this.parent = parent | | 17 | this.employers = employers
|
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 |