public class User {
private String name;
private List groups = new ArrayList();
User() {}
public User(String name) {
this.name = name;
}
public String getName() {
return name;
}
void setName(String name) {
this.name = name;
}
public List getGroups() {
return groups;
}
void setGroups(List groups) {
this.groups = groups;
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/idbag/User.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 User {↵ | | 1 | public class Parent {↵
|
2 | private String name;↵ | | 2 | private String name;↵
|
3 | private List groups = new ArrayList();↵ | | 3 | private List children = new ArrayList();↵
|
4 | ↵ | | 4 | ↵
|
5 | User() {}↵ | | 5 | Parent() {}↵
|
6 | ↵ | | 6 | ↵
|
7 | public User(String name) {↵ | | 7 | public Parent(String name) {↵
|
8 | this.name = name;↵ | | 8 | this.name = name;↵
|
9 | }↵ | | 9 | }↵
|
|
10 | public String getName() {↵ | | 10 | public ↵
|
11 | return name;↵ | | |
|
12 | }↵ | | |
|
13 | ↵ | | |
|
|
14 | void setName(String name) {↵ | | |
|
15 | this.name = name↵ | | 11 | List getChildren() {↵
|
| | | 12 | return children;↵
|
| | | 13 | }↵
|
| | | 14 | public void setChildren(List children) {↵
|
16 | ;↵ | | 15 | this.children = children;↵
|
17 | }↵ | | 16 | }↵
|
|
18 | public List getGroups() {↵ | | 17 | public ↵
|
19 | return groups;↵ | | |
|
20 | }↵ | | |
|
21 | ↵ | | |
|
22 | void setGroups(List groups) {↵ | | |
|
23 | this.groups = groups↵ | | 18 | String getName() {↵
|
| | | 19 | return name;↵
|
| | | 20 | }↵
|
| | | 21 | public void setName(String name) {↵
|
24 | ;↵ | | 22 | this.name = name;↵
|
25 | | | 23 |
|
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 |