public class Item {
private long id;
private String name;
private String description;
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
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 Hive {
private long id;
private Location location;
private List members = new ArrayList();
public List getMembers() {
return members;
}
public void setMembers(List hives) {
this.members = hives;
}
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public Location getLocation() {
return location;
}
public void setLocation(Location location) {
this.location = location
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/querycache/Item.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/unionsubclass/Hive.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class Item {↵ | | 1 | public class Hive {↵
|
2 | private long id;↵ | | 2 | private long id;↵
|
3 | private String name;↵ | | 3 | private ↵
|
4 | private String description↵ | | 4 | Location location;↵
|
5 | ;↵ | | 5 | private List members = new ArrayList();↵
|
|
6 | public String getDescription() {↵ | | 6 | public List getMembers() {↵
|
7 | return description;↵ | | 7 | return members;↵
|
8 | }↵ | | 8 | }↵
|
9 | public void setDescription(String description) {↵ | | 9 | public void set↵
|
10 | this.description = description↵ | | 10 | Members(List hives) {↵
|
11 | ;↵ | | 11 | this.members = hives;↵
|
12 | }↵ | | 12 | }↵
|
13 | public long getId() {↵ | | 13 | public long getId() {↵
|
14 | return id;↵ | | 14 | return id;↵
|
15 | }↵ | | 15 | }↵
|
16 | public void setId(long id) {↵ | | 16 | public void setId(long id) {↵
|
17 | this.id = id;↵ | | 17 | this.id = id;↵
|
18 | }↵ | | 18 | }↵
|
19 | public String getName() {↵ | | 19 | public Location getLocation() {↵
|
20 | return name;↵ | | 20 | return location;↵
|
21 | }↵ | | 21 | }↵
|
22 | public void setName(String name) {↵ | | 22 | public void set↵
|
23 | this.name = name | | 23 | Location(Location location) {↵
|
| | | 24 | this.location = location
|
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 |