| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 12 | 2 | 5 | 0.981 | statement_sequence[5] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 12 | 1006 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/UnresolvedElementsSubProcessor.java |
| 2 | 12 | 1105 | 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;
}
}
|
| ||||
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;
}
}
|
| |||
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 Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#97268e80]] | methodBinding |
| 1 | 2 | [[#97268e80]] | methodRef |
| 2 | 1 | [[#97268ce0]] | paramTypes |
| 2 | 2 | [[#97268ce0]] | argTypes |
| 3 | 1 | [[#97e518c0]] | argTypes |
| 3 | 2 | [[#97e518c0]] | paramTypes |
| 4 | 1 | [[#97268ba0]] | k |
| 4 | 2 | [[#97268ba0]] | i |
| 5 | 1 | [[#97268d40]] | i |
| 5 | 2 | [[#97268d40]] | k |