if (other._wrappedFile != null) { return false; }
if (other.key != null) { return false; }
Clone fragments detected by clone detection tool
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/util/FileWrapperImpl.java
|
|
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/parser/kernel/ErrorInfo.java
|
Method name: boolean equals(Object)
|
|
Method name: boolean equals(Object)
|
Number of AST nodes: 2
|
|
Number of AST nodes: 2
|
|
1 | if (other._wrappedFile != null) { return false; } | | 1 | if (other.key != null) { return false; }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.2 |
Clones location | Clones are in different classes |
Number of node comparisons | 5 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.6 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
9 | if (other._wrappedFile != null) | | 9 | if (other.key != null) |
10 | | | 10 | |
Precondition Violations (3)
Row |
Violation |
1 | Type java.io.File of variable other._wrappedFile does not match with type java.lang.String of variable other.key |
2 | Type java.io.File of variable other._wrappedFile does not match with type java.lang.String of variable other.key |
3 | Not all possible execution flows end in a return statement |