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 Version {
long id;
String name;
String 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 String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
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/schemaupdate/Version.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class Item {↵ | | 1 | public class ↵
|
2 | private ↵ | | 2 | Version {↵
|
|
3 | long id;↵ | | 3 | long id;↵
|
4 | private String name;↵ | | 4 | String name;↵
|
5 | private String description;↵ | | 5 | String description;↵
|
| | | 6 | ↵
|
6 | public String getDescription() {↵ | | 7 | public long getId() {↵
|
7 | return description;↵ | | 8 | return id;↵
|
8 | }↵ | | 9 | }↵
|
9 | public void setDescription(String description) {↵ | | 10 | public void set↵
|
10 | this.description = description↵ | | 11 | Id(long id) {↵
|
11 | ;↵ | | 12 | this.id = id;↵
|
12 | }↵ | | 13 | }↵
|
13 | public long getId() {↵ | | 14 | public String getName() {↵
|
14 | return id;↵ | | 15 | return name;↵
|
15 | }↵ | | 16 | }↵
|
16 | ↵ | | 17 | ↵
|
17 | public void setId(long id) {↵ | | 18 | public void set↵
|
18 | this.id = id↵ | | 19 | Name(String name) {↵
|
19 | ;↵ | | 20 | this.name = name;↵
|
20 | }↵ | | 21 | }↵
|
21 | ↵ | | 22 | ↵
|
22 | public String getName() {↵ | | 23 | public String getDescription() {↵
|
23 | return name;↵ | | 24 | return description;↵
|
24 | }↵ | | 25 | }↵
|
25 | ↵ | | 26 | ↵
|
26 | public void setName(String name) {↵ | | 27 | public void set↵
|
27 | this.name = name↵ | | 28 | Description(String description) {↵
|
28 | ;↵ | | 29 | this.description = description;↵
|
29 | | | 30 |
|
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 |