public class Person {
private Long id;
private String name;
private Object data;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Object getData() {
return data;
}
public void setData(Object data) {
this.data = data
public class ProductLine {
private String id;
private String description;
private Set models = new HashSet();
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public Set getModels() {
return models;
}
public void setModels(Set models) {
this.models = models
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/any/Person.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/batchfetch/ProductLine.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class Person {
↵ | | 1 | public class ProductLine {↵
|
|
2 | private Long id;
↵ | | 2 | private String id;↵
|
3 | private String name;↵ | | 3 | private String ↵
|
4 | private Object data;↵ | | |
|
|
5 |
↵ | | 4 | description;↵
|
| | | 5 | private Set models = new HashSet();↵
|
| | | 6 | ↵
|
6 | public Long getId() {
↵ | | 7 | public String getDescription() {↵
|
7 | return id;↵ | | 8 | return ↵
|
8 | }↵ | | |
|
9 |
↵ | | 9 | description;↵
|
| | | 10 | }↵
|
10 | public void setId(Long id) {
↵ | | 11 | public void setDescription(String description) {↵
|
11 | this.id = id;↵ | | 12 | this.↵
|
12 | }↵ | | |
|
13 |
↵ | | 13 | description = description;↵
|
| | | 14 | }↵
|
14 | public String getName() {
↵ | | 15 | public String getId() {↵
|
15 | return name;↵ | | 16 | return ↵
|
16 | }↵ | | |
|
17 |
↵ | | 17 | id;↵
|
| | | 18 | }↵
|
18 | public void setName(String name) {
↵ | | 19 | public void setId(String id) {↵
|
19 | this.name = name;↵ | | 20 | this.↵
|
20 | }↵ | | |
|
|
21 | public Object getData↵ | | 21 | id = id;↵
|
| | | 22 | }↵
|
22 | () {
↵ | | 23 | public Set getModels() {↵
|
23 | return data;↵ | | 24 | return ↵
|
24 | }↵ | | |
|
25 |
↵ | | 25 | models;↵
|
| | | 26 | }↵
|
26 | public void setData(Object data) {
↵ | | 27 | public void setModels(Set models) {↵
|
27 | this.data = data | | 28 | this.models = models
|
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 |