Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
15 | 2 | 0 | 1.000 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 15 | 266 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java |
2 | 15 | 79 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor2.java |
| ||||
private boolean commentStartsBlock(int start, int end) { this.localScanner.resetTo(start, end); try { if (this.localScanner.getNextToken() == TerminalTokens.TokenNameLBRACE) { switch (this.localScanner.getNextToken()) { case TerminalTokens.TokenNameCOMMENT_BLOCK: case TerminalTokens.TokenNameCOMMENT_JAVADOC: case TerminalTokens.TokenNameCOMMENT_LINE: return true; } } } catch (InvalidInputException e) { // ignore } return false; } |
| ||||
private boolean commentStartsBlock(int start, int end) { this.localScanner.resetTo(start, end); try { if (this.localScanner.getNextToken() == TerminalTokens.TokenNameLBRACE) { switch (this.localScanner.getNextToken()) { case TerminalTokens.TokenNameCOMMENT_BLOCK: case TerminalTokens.TokenNameCOMMENT_JAVADOC: case TerminalTokens.TokenNameCOMMENT_LINE: return true; } } } catch (InvalidInputException e) { // ignore } return false; } |
| |||
private boolean commentStartsBlock(int start, int end) { this.localScanner.resetTo(start, end); try { if (this.localScanner.getNextToken() == TerminalTokens.TokenNameLBRACE) { switch (this.localScanner.getNextToken()) { case TerminalTokens.TokenNameCOMMENT_BLOCK: case TerminalTokens.TokenNameCOMMENT_JAVADOC: case TerminalTokens.TokenNameCOMMENT_LINE: return true; } } } catch (InvalidInputException e) { // ignore } return false; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |