public class Person {
private Long id;
private String name;
private Object data;
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 Object getData() {
return data;
}
public void setData(Object data) {
this.data = data;
public class ParentInfoAssigned {
private Long id;
private ParentAssigned owner;
private String info;
public ParentInfoAssigned() {
}
public ParentInfoAssigned(String info) {
this.info = info;
}
public Long getId() {
return id;
}
public ParentAssigned getOwner() {
return owner;
}
public void setOwner(ParentAssigned 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/any/Person.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/jpa/cascade/ParentInfoAssigned.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class Person {↵ | | 1 | public class ParentInfoAssigned {↵
|
2 | private Long id;↵ | | 2 | private Long id;↵
|
3 | private String name;↵ | | 3 | private ↵
|
4 | private Object data;↵ | | |
|
|
|
5 | public Long getId() {↵ | | |
|
6 | return id;↵ | | |
|
7 | }↵ | | |
|
|
8 | public void setId(Long id) {↵ | | |
|
9 | this.id =↵ | | 4 | ParentAssigned owner;↵
|
| | | 5 | private String info;↵
|
|
| | | 6 | public ParentInfoAssigned() {↵
|
| | | 7 | }↵
|
|
| | | 8 | public ParentInfoAssigned(String info) {↵
|
| | | 9 | this.info = info;↵
|
| | | 10 | }↵
|
|
| | | 11 | public Long getId() {↵
|
10 | id;↵ | | 12 | return id;↵
|
11 | }↵ | | 13 | }↵
|
|
12 | public String getName() {↵ | | 14 | public ParentAssigned getOwner() {↵
|
13 | return name;↵ | | 15 | return owner;↵
|
14 | }↵ | | 16 | }↵
|
|
15 | public void setName(String name) {↵ | | 17 | public void setOwner(ParentAssigned owner) {↵
|
16 | this.name = name;↵ | | 18 | this.owner = owner;↵
|
17 | }↵ | | 19 | }↵
|
|
18 | public Object getData() {↵ | | 20 | public String getInfo() {↵
|
19 | return data;↵ | | 21 | return info;↵
|
20 | }↵ | | 22 | }↵
|
|
21 | public void setData(Object data) {↵ | | 23 | public void setInfo(String info) {↵
|
22 | this.data = data;↵ | | 24 | this.info = info;↵
|
23 | | | 25 |
|
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 |