CloneSet2969


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12230.953switch_group
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
112109
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaAutoIndentStrategy.java
212104
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaParameterListValidator.java
Clone Instance
1
Line Count
12
Source Line
109
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaAutoIndentStrategy.java

                                case '/':
                                        if (startOffset < endOffset) {
                                                char next = d.getChar(startOffset);
                                                if (next == '*') {
                                                        // a comment starts, advance to the comment end
                                                        startOffset = getCommentEnd(d, startOffset + 1, endOffset);
                                                }
                                                else   if (next == '/') {
                                                        // '//'-comment: nothing to do anymore on this line
                                                        startOffset = endOffset;
                                                       }
                                        }
                                        break;


Clone Instance
2
Line Count
12
Source Line
104
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaParameterListValidator.java

                                case '/':
                                        if (offset < end) {
                                                char next = document.getChar(offset);
                                                if (next == '*') {
                                                        // a comment starts, advance to the comment end
                                                        offset = getCommentEnd(document, offset + 1, end);
                                                }
                                                else   if (next == '/') {
                                                        // '//'-comment: nothing to do anymore on this line
                                                        offset = end;
                                                       }
                                        }
                                        break;


Clone AbstractionParameter Count: 3Parameter Bindings

case '/':
  if ( [[#variablea3fe8ac0]] <  [[#variablea3fe8a40]]) {
    char next = [[#variablea3fe89c0]].getChar( [[#variablea3fe8ac0]]);
    if (next == '*') {
       [[#variablea3fe8ac0]]= getCommentEnd( [[#variablea3fe89c0]],  [[#variablea3fe8ac0]] + 1,  [[#variablea3fe8a40]]);
    }
    else
      if (next == '/') {
         [[#variablea3fe8ac0]]= [[#variablea3fe8a40]];
      }
  }
  break;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#a3fe8ac0]]
startOffset 
12[[#a3fe8ac0]]
offset 
21[[#a3fe8a40]]
endOffset 
22[[#a3fe8a40]]
end 
31[[#a3fe89c0]]
d 
32[[#a3fe89c0]]
document