public class IdbagOwner {
private String name;
private List children = new ArrayList();
public IdbagOwner() {
}
public IdbagOwner(String name) {
this.name = name;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public List getChildren() {
return children;
}
public void setChildren(List children) {
this.children = children;
public class Parent {
private String name;
private List children = new ArrayList();
Parent() {}
public Parent(String name) {
this.name = name;
}
public List getChildren() {
return children;
}
public void setChildren(List children) {
this.children = children;
}
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/collection/idbag/IdbagOwner.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/unidir/Parent.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class IdbagOwner {
↵ | | 1 | public class Parent {↵
|
2 | private String name;
↵ | | 2 | private String name;↵
|
3 | private List children = new ArrayList();↵ | | 3 | private List children = new ArrayList();↵
|
|
4 | public IdbagOwner() {↵ | | |
|
5 | }↵ | | |
|
|
6 | public IdbagOwner↵ | | |
|
| | | 4 | Parent() {}↵
|
7 | (String name) {
↵ | | 5 | public Parent(String name) {↵
|
8 | this.name = name;
↵ | | 6 | this.name = name;↵
|
9 | }↵ | | 7 | }↵
|
10 |
↵ | | |
|
11 | public String getName() {
↵ | | 8 | public List getChildren() {↵
|
12 | return name;↵ | | 9 | return ↵
|
13 | }↵ | | |
|
14 |
↵ | | 10 | children;↵
|
| | | 11 | }↵
|
15 | public void setName(String name) {
↵ | | 12 | public void setChildren(List children) {↵
|
16 | this.name = name;↵ | | 13 | this.↵
|
17 | }↵ | | |
|
|
18 | public List getChildren↵ | | 14 | children = children;↵
|
| | | 15 | }↵
|
19 | () {
↵ | | 16 | public String getName() {↵
|
20 | return children;↵ | | 17 | return ↵
|
21 | }↵ | | |
|
22 |
↵ | | 18 | name;↵
|
| | | 19 | }↵
|
23 | public void setChildren(List children) {
↵ | | 20 | public void setName(String name) {↵
|
24 | this.children = children;
↵ | | 21 | this.name = name;↵
|
25 | | | 22 |
|
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 |