public class Child {
private Long id;
private Parent parent;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Parent getParent() {
return parent;
}
public void setParent(Parent parent) {
this.parent = parent;
public class BankAccount extends Account {
private String accountNumber;
private String bsb;
public String getAccountNumber() {
return accountNumber;
}
public void setAccountNumber(String accountNumber) {
this.accountNumber = accountNumber;
}
public String getBsb() {
return bsb;
}
public void setBsb(String bsb) {
this.bsb = bsb;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/cascade/Child.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/propertyref/inheritence/joined/BankAccount.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class Child {↵ | | 1 | public class BankAccount extends Account {
↵
|
2 | private Long id;↵ | | 2 | private ↵
|
3 | private Parent parent;↵ | | |
|
| | | 3 | String accountNumber;↵
|
| | | 4 | private String bsb;↵
|
| | | 5 |
↵
|
4 | public Long getId() {↵ | | 6 | public String getAccountNumber() {
↵
|
5 | return id;↵ | | 7 | return ↵
|
6 | }↵ | | |
|
|
7 | public void setId(Long id↵ | | 8 | accountNumber;↵
|
| | | 9 | }↵
|
|
8 | ) {↵ | | 10 | public void setAccountNumber(String accountNumber) {
↵
|
9 | this.id = id;↵ | | 11 | this.↵
|
10 | }↵ | | |
|
|
11 | public Parent getParent↵ | | 12 | accountNumber = accountNumber;↵
|
| | | 13 | }↵
|
|
12 | () {↵ | | 14 | public String getBsb() {
↵
|
13 | return parent;↵ | | 15 | return ↵
|
14 | }↵ | | |
|
| | | 16 | bsb;↵
|
| | | 17 | }↵
|
| | | 18 |
↵
|
15 | public void setParent(Parent parent) {↵ | | 19 | public void setBsb(String bsb) {
↵
|
16 | this.parent = parent;↵ | | 20 | this.bsb = bsb;
↵
|
17 | | | 21 |
|
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 |