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 Info {
private Long id;
private String details;
public Info() {
}
public Info(String details) {
this.details = details;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getDetails() {
return details;
}
public void setDetails(String details) {
this.details = details;
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/proxy/Info.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class Person {↵ | | 1 | public class Info {
↵
|
2 | private String name;↵ | | 2 | private ↵
|
3 | private Employee employee;↵ | | |
|
4 | Person() {}↵ | | 3 | Long id;↵
|
| | | 4 | private String details;↵
|
|
| | | 5 | public Info() {↵
|
| | | 6 | }↵
|
| | | 7 |
↵
|
5 | public Person(String name) {↵ | | 8 | public Info(String details) {
↵
|
6 | this.name = name;↵ | | 9 | this.↵
|
7 | }↵ | | |
|
8 | public Employee getEmployee↵ | | 10 | details = details;↵
|
| | | 11 | }↵
|
|
9 | () {↵ | | 12 | public Long getId() {
↵
|
10 | return employee;↵ | | 13 | return ↵
|
11 | }↵ | | 14 | id;↵
|
| | | 15 | }↵
|
| | | 16 |
↵
|
12 | public void setEmployee(Employee employee) {↵ | | 17 | public void setId(Long id) {
↵
|
13 | this.employee = employee;↵ | | 18 | this.↵
|
14 | }↵ | | 19 | id = id;↵
|
| | | 20 | }↵
|
| | | 21 |
↵
|
15 | public String getName() {↵ | | 22 | public String getDetails() {
↵
|
16 | return name;↵ | | 23 | return ↵
|
17 | }↵ | | 24 | details;↵
|
| | | 25 | }↵
|
| | | 26 |
↵
|
18 | public void setName(String name) {↵ | | 27 | public void setDetails(String details) {
↵
|
19 | this.name = name;↵ | | 28 | this.details = details;
↵
|
20 | | | 29 |
|
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 |