public class Course {
private String courseCode;
private String description;
public String getCourseCode() {
return courseCode;
}
public void setCourseCode(String courseCode) {
this.courseCode = courseCode;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description
public class Account {
private String number;
private Person owner;
public Person getOwner() {
return owner;
}
public void setOwner(Person owner) {
this.owner = owner;
}
public String getNumber() {
return number;
}
public void setNumber(String number) {
this.number = number
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/criteria/Course.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/propertyref/component/partial/Account.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class Course {↵ | | 1 | public class Account {
↵
|
2 | private String courseCode;↵ | | 2 | private String ↵
|
3 | private String description;↵ | | |
|
4 | public String getCourseCode↵ | | 3 | number;↵
|
| | | 4 | private Person owner;↵
|
|
5 | () {↵ | | 5 | public Person getOwner() {
↵
|
6 | return courseCode;↵ | | 6 | return ↵
|
7 | }↵ | | 7 | owner;↵
|
| | | 8 | }↵
|
| | | 9 |
↵
|
8 | public void setCourseCode(String courseCode) {↵ | | 10 | public void setOwner(Person owner) {
↵
|
9 | this.courseCode = courseCode;↵ | | 11 | this.↵
|
10 | }↵ | | 12 | owner = owner;↵
|
| | | 13 | }↵
|
| | | 14 |
↵
|
11 | public String getDescription() {↵ | | 15 | public String getNumber() {
↵
|
12 | return description;↵ | | 16 | return ↵
|
13 | }↵ | | 17 | number;↵
|
| | | 18 | }↵
|
| | | 19 |
↵
|
14 | public void setDescription(String description) {↵ | | 20 | public void setNumber(String number) {
↵
|
15 | this.description = description | | 21 | this.number = number
|
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 |