CloneSet2358


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
19230.976switch_groups[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
119145
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaParameterListValidator.java
219165
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaParameterListValidator.java
Clone Instance
1
Line Count
19
Source Line
145
Source File
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;
                                        }


Clone Instance
2
Line Count
19
Source Line
165
Source File
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 = BRACE;
                                                        nestingLevel = 1;
                                                }
                                                if (nestingMode == BRACE || nestingMode == NONE) {
                                                        nestingMode = BRACE;
                                                        nestingLevel++;
                                                }
                                                break;
                                        }
                                case '}':
                                        if (considerNesting) {
                                                if (nestingMode == BRACE)
                                                        if ( --nestingLevel == 0)
                                                                nestingMode = NONE;
                                                break;
                                        }


Clone AbstractionParameter Count: 3Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b9253780]]
'(' 
12[[#b9253780]]
'{' 
21[[#92a981a0]]
PAREN 
22[[#92a981a0]]
BRACE 
31[[#563e0fa0]]
')' 
32[[#563e0fa0]]
'}'