public class Resource {
private Long id;
private String name;
private User owner;
public Resource() {
}
public Resource(String name, User owner) {
this.name = name;
this.owner = owner;
}
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 User getOwner() {
return owner;
}
public void setOwner(User owner) {
this.owner = owner
public class Locality {
private Long id;
private String name;
private Country country;
public Locality() {
}
public Locality(String name, Country country) {
this.name = name;
this.country = country;
}
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 Country getCountry() {
return country;
}
public void setCountry(Country country) {
this.country = country
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/stateless/fetching/Resource.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/stats/Locality.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class Resource {↵ | | 1 | public class Locality {↵
|
2 | private Long id;↵ | | 2 | private Long id;↵
|
3 | private String name;↵ | | 3 | private String name;↵
|
4 | private User owner;↵ | | 4 | private Country country;↵
|
|
5 | public Resource() {↵ | | 5 | public Locality() {↵
|
6 | }↵ | | 6 | }↵
|
|
7 | public Resource(String name, User owner) {↵ | | 7 | public Locality(String name, Country country) {↵
|
8 | this.name = name;↵ | | 8 | this.name = name;↵
|
9 | this.owner = owner;↵ | | 9 | this.country = country;↵
|
10 | }↵ | | 10 | }↵
|
|
11 | public Long getId() {↵ | | 11 | public Long getId() {↵
|
12 | return id;↵ | | 12 | return id;↵
|
13 | }↵ | | 13 | }↵
|
|
14 | public void setId(Long id) {↵ | | 14 | public void setId(Long id) {↵
|
15 | this.id = id;↵ | | 15 | this.id = id;↵
|
16 | }↵ | | 16 | }↵
|
|
17 | public String getName() {↵ | | 17 | public String getName() {↵
|
18 | return name;↵ | | 18 | return name;↵
|
19 | }↵ | | 19 | }↵
|
|
20 | public void setName(String name) {↵ | | 20 | public void setName(String name) {↵
|
21 | this.name = name;↵ | | 21 | this.name = name;↵
|
22 | }↵ | | 22 | }↵
|
|
23 | public User getOwner() {↵ | | 23 | public Country getCountry() {↵
|
24 | return owner;↵ | | 24 | return country;↵
|
25 | }↵ | | 25 | }↵
|
|
26 | public void setOwner(User owner) {↵ | | 26 | public void setCountry(Country country) {↵
|
27 | this.owner = owner | | 27 | this.country = country
|
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 |