public class Master implements Serializable {
private Long id;
private String name;
private Detail detail;
public Detail getDetail() {
return detail;
}
public void setDetail(Detail detail) {
this.detail = detail;
}
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 class Continent {
private Integer id;
private String name;
private Set countries;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Set getCountries() {
return countries;
}
public void setCountries(Set countries) {
this.countries = countries;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/formulajoin/Master.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/stats/Continent.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class Master implements Serializable {↵ | | 1 | public class Continent {↵
|
2 | private Long id;↵ | | 2 | private Integer id;↵
|
3 | private String name;↵ | | 3 | private String name;↵
|
4 | private Detail detail;↵ | | 4 | private Set↵
|
5 | public Detail getDetail↵ | | 5 | countries;↵
|
|
6 | () {↵ | | 6 | public Integer getId() {↵
|
7 | return detail;↵ | | 7 | return id;↵
|
8 | }↵ | | 8 | }↵
|
|
9 | public void setDetail(Detail detail) {↵ | | 9 | public void set↵
|
10 | this.detail = detail↵ | | 10 | Id(Integer id) {↵
|
11 | ;↵ | | 11 | this.id = id;↵
|
12 | }↵ | | 12 | }↵
|
|
13 | public Long getId() {↵ | | 13 | public String getName() {↵
|
14 | return id;↵ | | 14 | return name;↵
|
15 | }↵ | | 15 | }↵
|
|
16 | public void setId(Long id) {↵ | | 16 | public void set↵
|
17 | this.id = id↵ | | 17 | Name(String name) {↵
|
18 | ;↵ | | 18 | this.name = name;↵
|
19 | }↵ | | 19 | }↵
|
|
20 | public String getName() {↵ | | 20 | public Set getCountries() {↵
|
21 | return name;↵ | | 21 | return countries;↵
|
22 | }↵ | | 22 | }↵
|
|
23 | public void setName(String name) {↵ | | 23 | public void set↵
|
24 | this.name = name↵ | | 24 | Countries(Set countries) {↵
|
25 | ;↵ | | 25 | this.countries = countries;↵
|
26 | | | 26 |
|
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 |