public class OtherAssigned {
private Long id;
private ParentAssigned owner;
public OtherAssigned() {
}
public OtherAssigned(Long id) {
this.id = id;
}
public Long getId() {
return id;
}
public ParentAssigned getOwner() {
return owner;
}
public void setOwner(ParentAssigned owner) {
this.owner = owner;
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/jpa/cascade/OtherAssigned.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 OtherAssigned {↵ | | 1 | public class ↵
|
2 | private Long id;↵ | | |
|
3 | private ParentAssigned owner;↵ | | |
|
|
4 | public OtherAssigned() {↵ | | |
|
5 | }↵ | | |
|
|
6 | public OtherAssigned(Long id) {↵ | | |
|
7 | this.id = id;↵ | | |
|
8 | }↵ | | |
|
|
9 | public Long getId() {↵ | | |
|
10 | return id;↵ | | |
|
11 | }↵ | | |
|
|
12 | public ParentAssigned getOwner↵ | | 2 | BankAccount extends Account {↵
|
| | | 3 | private String accountNumber;↵
|
| | | 4 | private String bsb;↵
|
|
| | | 5 | public String getAccountNumber() {↵
|
| | | 6 | return accountNumber;↵
|
| | | 7 | }↵
|
|
| | | 8 | public void setAccountNumber(String accountNumber) {↵
|
| | | 9 | this.accountNumber = accountNumber;↵
|
| | | 10 | }↵
|
|
13 | () {↵ | | 11 | public String getBsb() {↵
|
14 | return owner;↵ | | 12 | return bsb;↵
|
15 | }↵ | | 13 | }↵
|
|
16 | public void setOwner(ParentAssigned owner) {↵ | | 14 | public void set↵
|
17 | this.owner = owner↵ | | 15 | Bsb(String bsb) {↵
|
18 | ;↵ | | 16 | this.bsb = bsb;↵
|
19 | | | 17 |
|
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 |