public class Person {
private Long id;
private Identity identity;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Identity getIdentity() {
return identity;
}
public void setIdentity(Identity identity) {
this.identity = identity;
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/propertyref/component/complete/Person.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 Person {↵ | | 1 | public class ↵
|
2 | private Long id;↵ | | |
|
3 | private Identity identity↵ | | 2 | BankAccount extends Account {↵
|
| | | 3 | private String accountNumber;↵
|
4 | ;↵ | | 4 | private String bsb;↵
|
5 | ↵ | | |
|
6 | public Long getId() {↵ | | 5 | public String getAccountNumber() {↵
|
7 | return id;↵ | | 6 | return accountNumber;↵
|
8 | }↵ | | 7 | }↵
|
|
9 | public void setId(Long id) {↵ | | 8 | public void set↵
|
10 | this.id = id↵ | | 9 | AccountNumber(String accountNumber) {↵
|
11 | ;↵ | | 10 | this.accountNumber = accountNumber;↵
|
12 | }↵ | | 11 | }↵
|
|
13 | public Identity getIdentity() {↵ | | 12 | public String getBsb() {↵
|
14 | return identity;↵ | | 13 | return bsb;↵
|
15 | }↵ | | 14 | }↵
|
|
16 | public void setIdentity(Identity identity) {↵ | | 15 | public void set↵
|
17 | this.identity = identity↵ | | 16 | Bsb(String bsb) {↵
|
18 | ;↵ | | 17 | this.bsb = bsb;↵
|
19 | | | 18 |
|
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 |