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