Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
4 | 2 | 2 | 0.989 | executable_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 4 | 207 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/ExtractConstantRefactoring.java |
2 | 4 | 211 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/ExtractConstantRefactoring.java |
| ||||
{ String literal = ((StringLiteral) associatedNode).getLiteralValue(); String guess = guessConstantNameFromString(literal, excludedVariableNames); return guess.length() == 0 ? new String[0]: new String[] { guess }; } |
| ||||
{ String literal = ((NumberLiteral) associatedNode).getToken(); String guess = guessConstantNameFromString(literal, excludedVariableNames); return guess.length() == 0 ? new String[0]: new String[] { guess }; } |
| |||
{ String literal = (( [[#variable78026400]]) associatedNode). [[#variable780264c0]](); String guess = guessConstantNameFromString(literal, excludedVariableNames); return guess.length() == 0 ? new String[0]: new String[] { guess }; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#78026400]] | StringLiteral |
1 | 2 | [[#78026400]] | NumberLiteral |
2 | 1 | [[#780264c0]] | getLiteralValue |
2 | 2 | [[#780264c0]] | getToken |