if (!range.match(ch)) { char ch1 = Character.toUpperCase((char)ch); if (!range.match(ch1)) if (!range.match(Character.toLowerCase(ch1))) continue; }
if (!range.match(ch)) { char ch1 = Character.toUpperCase((char)ch); if (!range.match(ch1)) if (!range.match(Character.toLowerCase(ch1))) continue; }
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/internal/RegEx.java File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/internal/RegEx.java
Method name: boolean matches(char[], int, int, Match) Method name: boolean matches(CharacterIterator, Match)
Number of AST nodes: 5 Number of AST nodes: 5
1
if (!range.match(ch)) {
1
if (!range.match(ch)) {
2
                              char ch1 = Character.toUpperCase((char)ch);
2
                              char ch1 = Character.toUpperCase((char)ch);
3
                              if (!range.match(ch1))
3
                              if (!range.match(ch1))
4
                                  if (!range.match(Character.toLowerCase(ch1)))
4
                                  if (!range.match(Character.toLowerCase(ch1)))
5
                                      continue;
5
                                      continue;
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.6
Clones locationClones are declared in the same class
Number of node comparisons12
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements5
    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.4
    Clone typeType 1
    Mapped Statements
    ID Statement ID Statement
    67
    if (!range.match(ch))
    69
    if (!range.match(ch))
    68
    char ch1 = Character.toUpperCase((char)ch);
    70
    char ch1 = Character.toUpperCase((char)ch);
    69
    if (!range.match(ch1))
    71
    if (!range.match(ch1))
    70
    if (!range.match(Character.toLowerCase(ch1)))
    72
    if (!range.match(Character.toLowerCase(ch1)))
    71
    continue;
    71
    continue;
    73
    continue;
    Preondition Violations
    Statement continue; without innermost loop
    Statement continue; without innermost loop
    73
    continue;
    Precondition Violations (2)
    Row Violation
    1Statement continue; without innermost loop
    2Statement continue; without innermost loop