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 Group {
private String name;
private Map users = new HashMap();
public Group(String name) {
this.name = name;
}
Group() {}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Map getUsers() {
return users;
}
public void setUsers(Map users) {
this.users = users;
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/joinfetch/Group.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class Parent {
↵ | | 1 | public class Group {↵
|
2 | private String name;
↵ | | 2 | private String name;↵
|
3 | private Set children = new HashSet();↵ | | 3 | private ↵
|
|
4 | public Parent() {↵ | | |
|
5 | }↵ | | |
|
6 |
↵ | | 4 | Map users = new HashMap();↵
|
| | | 5 | ↵
|
7 | public Parent(String name) {
↵ | | 6 | public Group(String name) {↵
|
8 | this.name = name;
↵ | | 7 | this.name = name;↵
|
9 | }↵ | | 8 | }↵
|
10 |
↵ | | |
|
|
| | | 9 | Group() {}↵
|
|
11 | public String getName() {
↵ | | 10 | public String getName() {↵
|
12 | return name;
↵ | | 11 | return name;↵
|
13 | }↵ | | 12 | }↵
|
14 |
↵ | | |
|
|
15 | public void setName(String name) {
↵ | | 13 | public void setName(String name) {↵
|
16 | this.name = name;
↵ | | 14 | this.name = name;↵
|
17 | }↵ | | 15 | }↵
|
18 |
↵ | | |
|
|
19 | public Set getChildren() {
↵ | | 16 | public Map getUsers() {↵
|
20 | return children;↵ | | 17 | return ↵
|
21 | }↵ | | |
|
22 |
↵ | | 18 | users;↵
|
| | | 19 | }↵
|
|
23 | public void setChildren(Set children) {
↵ | | 20 | public void setUsers(Map users) {↵
|
24 | this.children = children;
↵ | | 21 | this.users = users;↵
|
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 |