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