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; }
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.2
Clones locationClones are in different classes
Number of node comparisons5
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements2
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.6
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    9
    if (other._wrappedFile != null)
    9
    if (other._wrappedFile != null)
    9
    if (other.key != null)
    Differences
    Expression1Expression2Difference
    net.sourceforge.squirrel_sql.fw.util.FileWrapperImplnet.sourceforge.squirrel_sql.client.session.parser.kernel.ErrorInfoVARIABLE_TYPE_MISMATCH
    _wrappedFilekeyVARIABLE_NAME_MISMATCH
    java.io.Filejava.lang.StringVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type java.io.File of variable other._wrappedFile does not match with type java.lang.String of variable other.key
    • Make classes net.sourceforge.squirrel_sql.fw.util.FileWrapperImpl and net.sourceforge.squirrel_sql.client.session.parser.kernel.ErrorInfo extend a common superclass
    Type java.io.File of variable other._wrappedFile does not match with type java.lang.String of variable other.key
    • Make classes java.io.File and java.lang.String extend a common superclass
    9
    if (other.key != null)
    10
    return false;
    10
    return false;
    Precondition Violations (3)
    Row Violation
    1Type java.io.File of variable other._wrappedFile does not match with type java.lang.String of variable other.key
    2Type java.io.File of variable other._wrappedFile does not match with type java.lang.String of variable other.key
    3Not all possible execution flows end in a return statement