while (partlen-- > 0) { char ch1 = target [ offset++ ] ; char ch2 = part.charAt(i++); if (ch1 == ch2) continue; char uch1 = Character.toUpperCase(ch1); char uch2 = Character.toUpperCase(ch2); if (uch1 == uch2) continue; if (Character.toLowerCase(uch1) != Character.toLowerCase(uch2)) return false; }
while (partlen-- > 0) { char ch1 = target [ offset++ ] ; char ch2 = target [ i++ ] ; if (ch1 == ch2) continue; char uch1 = Character.toUpperCase(ch1); char uch2 = Character.toUpperCase(ch2); if (uch1 == uch2) continue; if (Character.toLowerCase(uch1) != Character.toLowerCase(uch2)) return false; }
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: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
while (partlen-- > 0) {
1
while (partlen-- > 0) {
2
              char ch1 =  target [  offset++ ] ;
2
              char ch1 =  target [  offset++ ] ;
3
              char ch2 = part.charAt(i++);
3
              char ch2 =  target [  i++ ] ;
4
              if (ch1 == ch2)
4
              if (ch1 == ch2)
5
                  continue;
5
                  continue;
6
              char uch1 = Character.toUpperCase(ch1);
6
              char uch1 = Character.toUpperCase(ch1);
7
              char uch2 = Character.toUpperCase(ch2);
7
              char uch2 = Character.toUpperCase(ch2);
8
              if (uch1 == uch2)
8
              if (uch1 == uch2)
9
                  continue;
9
                  continue;
10
              if (Character.toLowerCase(uch1) != Character.toLowerCase(uch2))
10
              if (Character.toLowerCase(uch1) != Character.toLowerCase(uch2))
11
                  return false;
11
                  return false;
12
          }
12
          }
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0