Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
11 | 2 | 2 | 0.953 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 11 | 152 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaAutoIndentStrategy.java |
2 | 11 | 59 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaParameterListValidator.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; } |
| ||||
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; } |
| |||
// ----------- 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5b19c9a0]] | pos |
1 | 2 | [[#5b19c9a0]] | offset |
2 | 1 | [[#5b19c920]] | end |
2 | 2 | [[#5b19c920]] | endOffset |