if (lineWidth != Integer.MAX_VALUE) { currentLineWidth += newString.length(); LOOP: for (int i = newString.length() - 1; i >= 0; --i) { switch (newString.charAt(i)) { case '\n': case '\r': { currentLineWidth = newString.length() - i; break LOOP;
if (lineWidth != Integer.MAX_VALUE) { currentLineWidth += newString.length(); LOOP: for (int i = newString.length() - 1; i >= 0; --i) { switch (newString.charAt(i)) { case '\n': case '\r': { currentLineWidth = newString.length() - i; break LOOP;
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xmi/impl/XMLString.java File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xmi/impl/XMLString.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
if (lineWidth != Integer.MAX_VALUE)
1
if (lineWidth != Integer.MAX_VALUE)
2
    {
2
    {
3
      currentLineWidth += newString.length();
3
      currentLineWidth += newString.length();
4
      LOOP: for (int i = newString.length() - 1; i >= 0; --i)
4
      LOOP: for (int i = newString.length() - 1; i >= 0; --i)
5
      {
5
      {
6
        switch (newString.charAt(i))
6
        switch (newString.charAt(i))
7
        {
7
        {
8
          case '\n':
8
          case '\n':
9
          case '\r':
9
          case '\r':
10
          {
10
          {
11
            currentLineWidth = newString.length() - i;
11
            currentLineWidth = newString.length() - i;
12
            break LOOP;
12
            break LOOP;
13
          
13
          
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