public abstract class Vehicle {
private Long id;
private String vin;
private String owner;
public String getVin() {
return vin;
}
public void setVin(String vin) {
this.vin = vin;
}
public String getOwner() {
return owner;
}
public void setOwner(String 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/hql/Vehicle.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 abstract class Vehicle {↵ | | 1 | public ↵
|
2 | private Long id;↵ | | 2 | class BankAccount extends Account {
↵
|
3 | private String vin;↵ | | 3 | private String accountNumber;
↵
|
4 | private String owner;↵ | | 4 | private String ↵
|
| | | 5 | bsb;↵
|
| | | 6 |
↵
|
5 | public String getVin() {↵ | | 7 | public String getAccountNumber() {
↵
|
6 | return vin;↵ | | 8 | return ↵
|
7 | }↵ | | |
|
| | | 9 | accountNumber;↵
|
| | | 10 | }↵
|
| | | 11 |
↵
|
8 | public void setVin(String vin) {↵ | | 12 | public void setAccountNumber(String accountNumber) {
↵
|
9 | this.vin = vin;↵ | | 13 | this.↵
|
10 | }↵ | | |
|
| | | 14 | accountNumber = accountNumber;↵
|
| | | 15 | }↵
|
| | | 16 |
↵
|
11 | public String getOwner() {↵ | | 17 | public String getBsb() {
↵
|
12 | return owner;↵ | | 18 | return ↵
|
13 | }↵ | | |
|
| | | 19 | bsb;↵
|
| | | 20 | }↵
|
| | | 21 |
↵
|
14 | public void setOwner(String owner) {↵ | | 22 | public void setBsb(String bsb) {
↵
|
15 | this.owner = owner | | 23 | this.bsb = bsb
|
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 |