Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
19 | 2 | 3 | 0.976 | switch_groups[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 19 | 145 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaParameterListValidator.java |
2 | 19 | 165 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaParameterListValidator.java |
| ||||
case '(': if (considerNesting) { if (nestingMode == ANGLE) { // generics heuristic failed nestingMode = PAREN; nestingLevel = 1; } if (nestingMode == PAREN || nestingMode == NONE) { nestingMode = PAREN; nestingLevel++; } break; } case ')': if (considerNesting) { if (nestingMode == PAREN) if ( --nestingLevel == 0) nestingMode = NONE; break; } |
| ||||
case '{': if (considerNesting) { if (nestingMode == ANGLE) { // generics heuristic failed nestingMode = BRACE; nestingLevel = 1; } if (nestingMode == BRACE || nestingMode == NONE) { nestingMode = BRACE; nestingLevel++; } break; } case '}': if (considerNesting) { if (nestingMode == BRACE) if ( --nestingLevel == 0) nestingMode = NONE; break; } |
| |||
case [[#variableb9253780]]: if (considerNesting) { if (nestingMode == ANGLE) { // generics heuristic failed nestingMode = [[#variable92a981a0]]; nestingLevel = 1; } if (nestingMode == [[#variable92a981a0]]|| nestingMode == NONE) { nestingMode = [[#variable92a981a0]]; nestingLevel++; } break; } case [[#variable563e0fa0]]: if (considerNesting) { if (nestingMode == [[#variable92a981a0]]) if ( --nestingLevel == 0) nestingMode = NONE; break; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b9253780]] | '(' |
1 | 2 | [[#b9253780]] | '{' |
2 | 1 | [[#92a981a0]] | PAREN |
2 | 2 | [[#92a981a0]] | BRACE |
3 | 1 | [[#563e0fa0]] | ')' |
3 | 2 | [[#563e0fa0]] | '}' |