public class ComponentCollection implements Serializable {
private String str;
private List foos;
private List floats;
public List getFoos() {
return foos;
}
public String getStr() {
return str;
}
public void setFoos(List list) {
foos = list;
}
public void setStr(String string) {
str = string;
}
public List getFloats() {
return floats;
}
public void setFloats(List list) {
floats = list;
public class Object2 {
private Long id;
private String dummy;
private MainObject belongsToMainObj;
public Long getId() {
return id;
}
public void setId(Long l) {
this.id = l;
}
public String getDummy() {
return dummy;
}
public void setDummy(String string) {
dummy = string;
}
public MainObject getBelongsToMainObj() {
return belongsToMainObj;
}
public void setBelongsToMainObj(MainObject object) {
belongsToMainObj = object;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/ComponentCollection.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/Object2.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class ComponentCollection implements Serializable {↵ | | 1 | public class Object2 {↵
|
2 | private String str;↵ | | 2 | private Long id;↵
|
3 | private List foos;↵ | | 3 | private ↵
|
4 | private List floats;↵ | | 4 | String dummy;↵
|
| | | 5 | private MainObject belongsToMainObj;↵
|
|
5 | public List getFoos() {↵ | | 6 | public Long getId() {↵
|
6 | return foos;↵ | | 7 | return id;↵
|
7 | }↵ | | 8 | }↵
|
|
8 | public String getStr() {↵ | | 9 | public ↵
|
9 | return str↵ | | 10 | void setId(Long l) {↵
|
10 | ;↵ | | 11 | this.id = l;↵
|
11 | }↵ | | 12 | }↵
|
| | | 13 | ↵
|
12 | public void setFoos(List list) {↵ | | 14 | public ↵
|
13 | foos = list↵ | | 15 | String getDummy() {↵
|
14 | ;↵ | | 16 | return dummy;↵
|
15 | }↵ | | 17 | }↵
|
|
16 | public void setStr(String string) {↵ | | 18 | public void setDummy(String string) {↵
|
17 | str = string;↵ | | 19 | dummy = string;↵
|
18 | }↵ | | 20 | }↵
|
|
19 | public List getFloats() {↵ | | 21 | public ↵
|
20 | return floats;↵ | | |
|
21 | }↵ | | |
|
|
22 | public void setFloats(List list) {↵ | | |
|
23 | floats = lis↵ | | 22 | MainObject getBelongsToMainObj() {↵
|
| | | 23 | return belongsToMainObj;↵
|
| | | 24 | }↵
|
|
| | | 25 | public void setBelongsToMainObj(MainObject object) {↵
|
24 | t;↵ | | 26 | belongsToMainObj = object;↵
|
25 | | | 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 |