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 Entity {
private String name;
private List values = new ArrayList();
public Entity() {
}
public Entity(String name) {
this.name = name;
}
public String getName() {
return name;
}
public List getValues() {
return values;
}
public void setValues(List values) {
this.values = values;
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/usercollection/parameterized/Entity.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class Product implements Serializable {↵ | | 1 | public class Entity {
↵
|
2 | private String name;↵ | | 2 | private String name;
↵
|
3 | private Map parts = new HashMap();↵ | | 3 | private ↵
|
| | | 4 | List values = new ArrayList();↵
|
| | | 5 |
↵
|
4 | public Product() {↵ | | 6 | public Entity() {
↵
|
5 | }↵ | | 7 | }↵
|
|
| | | 8 |
↵
|
6 | public Product(String name) {↵ | | 9 | public Entity(String name) {
↵
|
7 | this.name = name;↵ | | 10 | this.name = name;
↵
|
8 | }↵ | | 11 | }↵
|
|
| | | 12 |
↵
|
9 | public String getName() {↵ | | 13 | public String getName() {
↵
|
10 | return name;↵ | | 14 | return name;
↵
|
11 | }↵ | | 15 | }↵
|
|
| | | 16 |
↵
|
12 | public Map getParts() {↵ | | 17 | public List getValues() {
↵
|
13 | return parts;↵ | | 18 | return values;
↵
|
14 | }↵ | | 19 | }↵
|
|
| | | 20 |
↵
|
15 | public void setParts(Map parts) {↵ | | 21 | public void setValues(List values) {
↵
|
16 | this.parts = parts;↵ | | 22 | this.values = values;
↵
|
17 | | | 23 |
|
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 |