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 Product implements Serializable {
private String name;
private Set parts = new HashSet();
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Set getParts() {
return parts;
}
public void setParts(Set parts) {
this.parts = parts
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/orphan/Product.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class Product implements Serializable {↵ | | 1 | public class Product implements Serializable {↵
|
2 | private String name;↵ | | 2 | private String name;↵
|
3 | private Map parts = new HashMap();↵ | | 3 | private Set parts = new Hash↵
|
|
4 | public Product() {↵ | | |
|
5 | }↵ | | |
|
| | | 4 | Set();↵
|
6 | public Product(String name) {↵ | | 5 | public String getName() {↵
|
7 | this.name = name;↵ | | 6 | return name;↵
|
8 | }↵ | | 7 | }↵
|
|
9 | public String getName() {↵ | | 8 | public void setName(String name) {↵
|
10 | return name;↵ | | 9 | this.name = name;↵
|
11 | }↵ | | 10 | }↵
|
|
12 | public Map getParts() {↵ | | 11 | public Set getParts() {↵
|
13 | return parts;↵ | | 12 | return parts;↵
|
14 | }↵ | | 13 | }↵
|
|
15 | public void setParts(Map parts) {↵ | | 14 | public void setParts(Set parts) {↵
|
16 | this.parts = parts | | 15 | this.parts = parts
|
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 |