CloneSet1223


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16201.000statement_sequence[6]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1166106
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java
2166191
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java
Clone Instance
1
Line Count
16
Source Line
6106
Source File
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java

                        TypeBinding[] parameters = method.parameters;
                        if (parameters.length < arguments.length)
                                continue nextMethod;

                        int length = arguments.length - 1;

                        for (int j = 0; j < length; j++) {
                                Expression argument = arguments[j];
                                TypeBinding argType = argument.resolvedType;
                                if (argType != null && !argType.isCompatibleWith(parameters[j]))
                                        continue nextMethod;
                        }

                        TypeBinding expectedType = method.parameters[arguments.length - 1];
                        if (expectedType != null) {
                                addExpectedType(expectedType, scope);
                        }


Clone Instance
2
Line Count
16
Source Line
6191
Source File
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java

                        TypeBinding[] parameters = method.parameters;
                        if (parameters.length < arguments.length)
                                continue nextMethod;

                        int length = arguments.length - 1;

                        for (int j = 0; j < length; j++) {
                                Expression argument = arguments[j];
                                TypeBinding argType = argument.resolvedType;
                                if (argType != null && !argType.isCompatibleWith(parameters[j]))
                                        continue nextMethod;
                        }

                        TypeBinding expectedType = method.parameters[arguments.length - 1];
                        if (expectedType != null) {
                                addExpectedType(expectedType, scope);
                        }


Clone AbstractionParameter Count: 0Parameter Bindings

TypeBinding[] parameters = method.parameters;
if (parameters.length < arguments.length)
  continue nextMethod;
int length = arguments.length - 1;
for (int j = 0; j < length; j++) {
  Expression argument = arguments[j];
  TypeBinding argType = argument.resolvedType;
  if (argType != null && !argType.isCompatibleWith(parameters[j]))
    continue nextMethod;
}
TypeBinding expectedType = method.parameters[arguments.length - 1];
if (expectedType != null) {
  addExpectedType(expectedType, scope);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None