public class Product implements Serializable {
private String name;
private Map parts = new HashMap();
public Product() {
}
public Product(String name) {
this.name = name;
}
public String getName() {
return name;
}
public Map getParts() {
return parts;
}
public void setParts(Map parts) {
this.parts = parts
public class Group {
private String name;
private Set users = new HashSet();
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Set getUsers() {
return users;
}
public void setUsers(Set 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/backref/map/compkey/Product.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/propertyref/basic/Group.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class Product implements Serializable {↵ | | 1 | public class Group {
↵
|
2 | private String name;↵ | | 2 | private String name;
↵
|
3 | private Map parts = new HashMap();↵ | | 3 | private Set users = new HashSet();↵
|
| | | 4 |
↵
|
4 | public Product() {↵ | | 5 | ↵
|
5 | }↵ | | |
|
| | | 6 |
↵
|
6 | public Product(String name) {↵ | | 7 | public String getName() {
↵
|
7 | this.name = name;↵ | | 8 | return name;
↵
|
8 | }↵ | | 9 | }↵
|
| | | 10 |
↵
|
9 | public String getName() {↵ | | 11 | public void setName(String name) {
↵
|
10 | return name;↵ | | 12 | this.name = name;
↵
|
11 | }↵ | | 13 | }↵
|
| | | 14 |
↵
|
12 | public Map getParts() {↵ | | 15 | public Set getUsers() {
↵
|
13 | return parts;↵ | | 16 | return users;
↵
|
14 | }↵ | | 17 | }↵
|
| | | 18 |
↵
|
15 | public void setParts(Map parts) {↵ | | 19 | public void setUsers(Set users) {
↵
|
16 | this.parts = parts | | 20 | this.users = users
|
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 |