public class Competition {
private Integer id;
private List competitors = new ArrayList();
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public List getCompetitors() {
return competitors;
}
public void setCompetitors(List competitors) {
this.competitors = competitors;
public class Identity implements Serializable {
private String name;
private String ssn;
public String getSsn() {
return ssn;
}
public void setSsn(String id) {
this.ssn = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/ops/Competition.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/propertyref/component/complete/Identity.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class Competition {↵ | | 1 | public class ↵
|
2 | private Integer id;↵ | | |
|
|
3 | private List competitors = new ArrayList();↵ | | |
|
| | | 2 | Identity implements Serializable {↵
|
| | | 3 | private String name;↵
|
| | | 4 | private String ssn;↵
|
|
4 | public Integer getId() {↵ | | 5 | public String getSsn() {↵
|
5 | return id;↵ | | 6 | return ssn;↵
|
6 | }↵ | | 7 | }↵
|
|
7 | public void setId(Integer id) {↵ | | 8 | public void setSsn(String id) {↵
|
8 | this.id = id;↵ | | 9 | this.ssn = id;↵
|
9 | }↵ | | 10 | }↵
|
|
10 | public List getCompetitors() {↵ | | 11 | public String getName() {↵
|
11 | return competitors;↵ | | 12 | return name;↵
|
12 | }↵ | | 13 | }↵
|
|
13 | public void setCompetitors(List competitors) {↵ | | 14 | public void setName(String name) {↵
|
14 | this.competitors = competitors;↵ | | 15 | this.name = name;↵
|
15 | | | 16 |
|
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 |