CloneSet2606


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

        // ----------- bracket counting ------------------------------------------------------
        private int getCommentEnd(IDocument d, int offset, int endOffset) throws BadLocationException {
                while (offset < endOffset) {
                        char curr = d.getChar(offset);
                        offset++;
                        if (curr == '*') {
                                if (offset < endOffset && d.getChar(offset) == '/') {
                                        return offset + 1;
                                }
                        }
                }
                return endOffset;
        }


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

        private int getCommentEnd(IDocument d, int pos, int end) throws BadLocationException {
                while (pos < end) {
                        char curr = d.getChar(pos);
                        pos++;
                        if (curr == '*') {
                                if (pos < end && d.getChar(pos) == '/') {
                                        return pos + 1;
                                }
                        }
                }
                return end;
        }


Clone AbstractionParameter Count: 2Parameter Bindings

// ----------- bracket counting ------------------------------------------------------
private int getCommentEnd(IDocument d, int  [[#variable5b19c9a0]], int  [[#variable5b19c920]]) throws BadLocationException {
  while ( [[#variable5b19c9a0]] <  [[#variable5b19c920]]) {
    char curr = d.getChar( [[#variable5b19c9a0]]);
     [[#variable5b19c9a0]]++;
    if (curr == '*') {
      if ( [[#variable5b19c9a0]] <  [[#variable5b19c920]]&& d.getChar( [[#variable5b19c9a0]]) == '/') {
        return [[#variable5b19c9a0]] + 1;
      }
    }
  }
  return [[#variable5b19c920]];
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5b19c9a0]]
pos 
12[[#5b19c9a0]]
offset 
21[[#5b19c920]]
end 
22[[#5b19c920]]
endOffset