switch(statType) { case IN: return ""; case WHERE: return "="; case UPDATE: return "="; }
switch(statType) { case IN: return ""; case WHERE: return " is "; case UPDATE: return "="; }
Clone fragments detected by clone detection tool
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/gui/action/TableCopySqlPartCommandBase.java File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/gui/action/TableCopySqlPartCommandBase.java
Method name: String getPrefixForStatType(StatType, boolean) Method name: String getPrefixForStatType(StatType, boolean)
Number of AST nodes: 7 Number of AST nodes: 7
1
switch(statType)
1
switch(statType)
2
         {
2
         {
3
            case IN: return "";
3
            case IN: return "";
4
            case WHERE: return "=";
4
            case WHERE: return " is ";
5
            case UPDATE: return "=";
5
            case UPDATE: return "=";
6
         }
6
         }
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.1
Clones locationClones are in the same method
Number of node comparisons25
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements7
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)1.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    9
    switch (statType)
    2
    switch (statType)
    10
    case IN:
    3
    case IN:
    11
    return "";
    4
    return "";
    12
    case WHERE:
    5
    case WHERE:
    13
    return "=";
    13
    return "=";
    6
    return " is ";
    Differences
    Expression1Expression2Difference
    "="" is "LITERAL_VALUE_MISMATCH
    6
    return " is ";
    14
    case UPDATE:
    7
    case UPDATE:
    15
    return "=";
    8
    return "=";
    Precondition Violations (1)
    Row Violation
    1Not all possible execution flows end in a return statement