public class Definition {
private Long id;
private Set values = new HashSet();
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Set getValues() {
return values;
}
public void setValues(Set values) {
this.values = values
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/component/cascading/collection/Definition.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 Definition {↵ | | 1 | public class ↵
|
2 | private Long id↵ | | 2 | Entity {↵
|
3 | ;↵ | | 3 | private String name;↵
|
4 | private Set values = new HashSet();↵ | | 4 | private List values = new ArrayList();↵
|
|
5 | public Long getId() {↵ | | 5 | public ↵
|
6 | return id;↵ | | |
|
7 | }↵ | | |
|
|
8 | public void setId(Long id) {↵ | | |
|
9 | this.id = id↵ | | 6 | Entity() {↵
|
| | | 7 | }↵
|
|
| | | 8 | public Entity(String name) {↵
|
| | | 9 | this.name = name;↵
|
| | | 10 | }↵
|
|
| | | 11 | public String getName() {↵
|
10 | ;↵ | | 12 | return name;↵
|
11 | }↵ | | 13 | }↵
|
|
12 | public Set getValues() {↵ | | 14 | public List getValues() {↵
|
13 | return values;↵ | | 15 | return values;↵
|
14 | }↵ | | 16 | }↵
|
|
15 | public void setValues(Set values) {↵ | | 17 | public void setValues(List values) {↵
|
16 | this.values = values | | 18 | this.values = values
|
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 |