Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
21 | 2 | 0 | 1.000 | class_body_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 21 | 210 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/TokenScanner.java |
2 | 21 | 399 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/TokenScanner.java |
| ||||
public static boolean isComment(int token) { return token == ITerminalSymbols.TokenNameCOMMENT_BLOCK || token == ITerminalSymbols.TokenNameCOMMENT_JAVADOC || token == ITerminalSymbols.TokenNameCOMMENT_LINE; } public static boolean isModifier(int token) { switch (token) { case ITerminalSymbols.TokenNamepublic: case ITerminalSymbols.TokenNameprotected: case ITerminalSymbols.TokenNameprivate: case ITerminalSymbols.TokenNamestatic: case ITerminalSymbols.TokenNamefinal: case ITerminalSymbols.TokenNameabstract: case ITerminalSymbols.TokenNamenative: case ITerminalSymbols.TokenNamevolatile: case ITerminalSymbols.TokenNamestrictfp: case ITerminalSymbols.TokenNametransient: case ITerminalSymbols.TokenNamesynchronized: return true; default: return false; } } |
| ||||
public static boolean isComment(int token) { return token == ITerminalSymbols.TokenNameCOMMENT_BLOCK || token == ITerminalSymbols.TokenNameCOMMENT_JAVADOC || token == ITerminalSymbols.TokenNameCOMMENT_LINE; } public static boolean isModifier(int token) { switch (token) { case ITerminalSymbols.TokenNamepublic: case ITerminalSymbols.TokenNameprotected: case ITerminalSymbols.TokenNameprivate: case ITerminalSymbols.TokenNamestatic: case ITerminalSymbols.TokenNamefinal: case ITerminalSymbols.TokenNameabstract: case ITerminalSymbols.TokenNamenative: case ITerminalSymbols.TokenNamevolatile: case ITerminalSymbols.TokenNamestrictfp: case ITerminalSymbols.TokenNametransient: case ITerminalSymbols.TokenNamesynchronized: return true; default: return false; } } |
| |||
public static boolean isComment(int token) { return token == ITerminalSymbols.TokenNameCOMMENT_BLOCK || token == ITerminalSymbols.TokenNameCOMMENT_JAVADOC || token == ITerminalSymbols.TokenNameCOMMENT_LINE; } public static boolean isModifier(int token) { switch (token) { case ITerminalSymbols.TokenNamepublic: case ITerminalSymbols.TokenNameprotected: case ITerminalSymbols.TokenNameprivate: case ITerminalSymbols.TokenNamestatic: case ITerminalSymbols.TokenNamefinal: case ITerminalSymbols.TokenNameabstract: case ITerminalSymbols.TokenNamenative: case ITerminalSymbols.TokenNamevolatile: case ITerminalSymbols.TokenNamestrictfp: case ITerminalSymbols.TokenNametransient: case ITerminalSymbols.TokenNamesynchronized: return true; default: return false; } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |