public class Person {
private String name;
private Employee employee;
Person() {}
public Person(String name) {
this.name = name;
}
public Employee getEmployee() {
return employee;
}
public void setEmployee(Employee employee) {
this.employee = employee;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
public class Child {
private String name;
private Parent parent;
public Child() {
}
public Child(String name) {
this.name = name;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Parent getParent() {
return parent;
}
public void setParent(Parent parent) {
this.parent = parent;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/lazyonetoone/Person.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/reattachment/Child.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class Person {↵ | | 1 | public class Child {
↵
|
2 | private String name;↵ | | 2 | private String name;
↵
|
3 | private Employee employee;↵ | | 3 | private ↵
|
4 | Person() {}↵ | | 4 | Parent parent;↵
|
|
| | | 5 | public Child() {↵
|
| | | 6 | }↵
|
| | | 7 |
↵
|
5 | public Person(String name) {↵ | | 8 | public Child(String name) {
↵
|
6 | this.name = name;↵ | | 9 | this.name = name;
↵
|
7 | }↵ | | 10 | }↵
|
| | | 11 |
↵
|
8 | public Employee getEmployee() {↵ | | 12 | public String getName() {
↵
|
9 | return employee;↵ | | 13 | return name;
↵
|
10 | }↵ | | 14 | }↵
|
| | | 15 |
↵
|
11 | public void setEmployee(Employee employee) {↵ | | 16 | public void setName(String name) {
↵
|
12 | this.employee = employee;↵ | | 17 | this.name = name;
↵
|
13 | }↵ | | 18 | }↵
|
| | | 19 |
↵
|
14 | public String getName() {↵ | | 20 | public Parent getParent() {
↵
|
15 | return name;↵ | | 21 | return ↵
|
16 | }↵ | | 22 | parent;↵
|
| | | 23 | }↵
|
| | | 24 |
↵
|
17 | public void setName(String name) {↵ | | 25 | public void setParent(Parent parent) {
↵
|
18 | this.name = name;↵ | | 26 | this.parent = parent;
↵
|
19 | | | 27 |
|
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 |