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