case '>': sb.append(">"); i++; break; case '&': sb.append("&"); i++; break; case '"': sb.append("""); i++; break;
case '<': sb.append("<"); i++; break; case '>': sb.append(">"); i++; break; case '&': sb.append("&"); i++; break;
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/parser/text/HtmlParser.java File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/parser/text/HtmlParser.java
Method name: String substituteSpecialCharactersInHeaderfields(String) Method name: String substituteSpecialCharacters(String)
Number of AST nodes: 12 Number of AST nodes: 12
1
case '<':
2
                        sb.append("<");
3
                        i++;
4
                        break;
1
case '>':
5
                    case '>':
2
                        sb.append(">");
6
                        sb.append(">");
3
                        i++;
7
                        i++;
4
                        break;
8
                        break;
5
                    case '&':
9
                    case '&':
6
                        sb.append("&");
10
                        sb.append("&");
7
                        i++;
11
                        i++;
8
                        break;
12
                        break;
9
                    case '"':
10
                        sb.append(""");
11
                        i++;
12
                        break;
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.0
Clones locationClones are declared in the same class
Number of node comparisons100
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements12
    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.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    14
    case '>':
    14
    case '>':
    14
    case '>':
    Preondition Violations
    Switch case '>': without corresponding switch
    Switch case '>': without corresponding switch
    14
    case '>':
    15
    sb.append(">");
    15
    sb.append(">");
    16
    i++;
    16
    i++;
    17
    break;
    17
    break;
    17
    break;
    Preondition Violations
    Statement break; without innermost loop
    Statement break; without innermost loop
    17
    break;
    18
    case '&':
    18
    case '&':
    18
    case '&':
    Preondition Violations
    Switch case '&': without corresponding switch
    Switch case '&': without corresponding switch
    18
    case '&':
    19
    sb.append("&");
    19
    sb.append("&");
    20
    i++;
    20
    i++;
    21
    break;
    21
    break;
    21
    break;
    Preondition Violations
    Statement break; without innermost loop
    Statement break; without innermost loop
    21
    break;
    22
    case '"':
    22
    case '"':
    10
    case '<':
    Differences
    Expression1Expression2Difference
    '"''<'LITERAL_VALUE_MISMATCH
    Preondition Violations
    Switch case '"': without corresponding switch
    Switch case '<': without corresponding switch
    10
    case '<':
    23
    sb.append(""");
    23
    sb.append(""");
    11
    sb.append("<");
    Differences
    Expression1Expression2Difference
    """"<"LITERAL_VALUE_MISMATCH
    11
    sb.append("<");
    24
    i++;
    12
    i++;
    25
    break;
    25
    break;
    13
    break;
    Preondition Violations
    Statement break; without innermost loop
    Statement break; without innermost loop
    13
    break;
    Precondition Violations (12)
    Row Violation
    1Switch case '>': without corresponding switch
    2Switch case '>': without corresponding switch
    3Statement break; without innermost loop
    4Statement break; without innermost loop
    5Switch case '&': without corresponding switch
    6Switch case '&': without corresponding switch
    7Statement break; without innermost loop
    8Statement break; without innermost loop
    9Switch case '"': without corresponding switch
    10Switch case '<': without corresponding switch
    11Statement break; without innermost loop
    12Statement break; without innermost loop