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