CloneSet3163


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

        private int getStringEnd(IDocument d, int offset, int endOffset, char ch) throws BadLocationException {
                while (offset < endOffset) {
                        char curr = d.getChar(offset);
                        offset++;
                        if (curr == '\\') {
                                // ignore escaped characters
                                offset++;
                        }
                        else   if (curr == ch) {
                                return offset;
                               }
                }
                return endOffset;
        }


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

        private int getStringEnd(IDocument d, int pos, int end, char ch) throws BadLocationException {
                while (pos < end) {
                        char curr = d.getChar(pos);
                        pos++;
                        if (curr == '\\') {
                                // ignore escaped characters
                                pos++;
                        }
                        else   if (curr == ch) {
                                return pos;
                               }
                }
                return end;
        }


Clone AbstractionParameter Count: 2Parameter Bindings

private int getStringEnd(IDocument d, int  [[#variablea1545600]], int  [[#variablea1545580]], char ch) throws BadLocationException {
  while ( [[#variablea1545600]] <  [[#variablea1545580]]) {
    char curr = d.getChar( [[#variablea1545600]]);
     [[#variablea1545600]]++;
    if (curr == '\\') {
       [[#variablea1545600]]++;
    }
    else
      if (curr == ch) {
        return [[#variablea1545600]];
      }
  }
  return [[#variablea1545580]];
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#a1545600]]
pos 
12[[#a1545600]]
offset 
21[[#a1545580]]
end 
22[[#a1545580]]
endOffset