CloneSet1319


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12250.981statement_sequence[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1121006
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/UnresolvedElementsSubProcessor.java
2121105
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/UnresolvedElementsSubProcessor.java
Clone Instance
1
Line Count
12
Source Line
1006
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/UnresolvedElementsSubProcessor.java

                ITypeBinding[] paramTypes = methodBinding.getParameterTypes();
                int k = 0,nSkipped = 0;
                int diff = paramTypes.length - argTypes.length;
                int[] indexSkipped = new int[diff];
                for (int i = 0; i < paramTypes.length; i++) {
                        if (k < argTypes.length && canAssign(argTypes[k], paramTypes[i])) {
                                k++; // match
                        }
                        else   {
                                if (nSkipped >= diff) {
                                        return; // too different
                                }
                                indexSkipped[nSkipped++ ] = i;
                        }
                }


Clone Instance
2
Line Count
12
Source Line
1105
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/UnresolvedElementsSubProcessor.java

                ITypeBinding[] paramTypes = methodRef.getParameterTypes();
                int k = 0,nSkipped = 0;
                int diff = argTypes.length - paramTypes.length;
                int[] indexSkipped = new int[diff];
                for (int i = 0; i < argTypes.length; i++) {
                        if (k < paramTypes.length && canAssign(argTypes[i], paramTypes[k])) {
                                k++; // match
                        }
                        else   {
                                if (nSkipped >= diff) {
                                        return; // too different
                                }
                                indexSkipped[nSkipped++ ] = i;
                        }
                }


Clone AbstractionParameter Count: 5Parameter Bindings

ITypeBinding[] paramTypes = [[#variable97268e80]].getParameterTypes();
int k = 0, nSkipped = 0;
int diff = [[#variable97268ce0]].length -  [[#variable97e518c0]].length;
int[] indexSkipped = new int[diff];
for (int i = 0; i <  [[#variable97268ce0]].length; i++) {
  if (k <  [[#variable97e518c0]].length && canAssign(argTypes[ [[#variable97268ba0]]], paramTypes[ [[#variable97268d40]]])) {
    k++; // match
  }
  else {
    if (nSkipped >= diff) {
      return; // too different
    }
    indexSkipped[nSkipped++ ] = i;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#97268e80]]
methodBinding 
12[[#97268e80]]
methodRef 
21[[#97268ce0]]
paramTypes 
22[[#97268ce0]]
argTypes 
31[[#97e518c0]]
argTypes 
32[[#97e518c0]]
paramTypes 
41[[#97268ba0]]
k 
42[[#97268ba0]]
i 
51[[#97268d40]]
i 
52[[#97268d40]]
k