Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 2 | 1 | 0.991 | statement_sequence_member |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 1209 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/LookupEnvironment.java |
2 | 6 | 1219 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/LookupEnvironment.java |
| ||||
// walk all the unique collections & replace the unresolvedType with the resolvedType // must prevent 2 entries so == still works (1 containing the unresolvedType and the other containing the resolvedType) if (this.uniqueParameterizedTypeBindings.get(unresolvedType) != null) { // update the key Object[] keys = this.uniqueParameterizedTypeBindings.keyTable; for (int i = 0, l = keys.length; i < l; i++) { if (keys[i] == unresolvedType) { keys[i] = resolvedType; // hashCode is based on compoundName so this works - cannot be raw since type of parameterized type break; } } } |
| ||||
if (this.uniqueWildcardBindings.get(unresolvedType) != null) { // update the key Object[] keys = this.uniqueWildcardBindings.keyTable; for (int i = 0, l = keys.length; i < l; i++) { if (keys[i] == unresolvedType) { keys[i] = resolvedType; // hashCode is based on compoundName so this works break; } } } |
| |||
// walk all the unique collections & replace the unresolvedType with the resolvedType // must prevent 2 entries so == still works (1 containing the unresolvedType and the other containing the resolvedType) if (this. [[#variable647e15c0]].get(unresolvedType) != null) { // update the key Object[] keys = this. [[#variable647e15c0]].keyTable; for (int i = 0, l = keys.length; i < l; i++) { if (keys[i] == unresolvedType) { keys[i] = resolvedType; // hashCode is based on compoundName so this works - cannot be raw since type of parameterized type // hashCode is based on compoundName so this works break; } } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#647e15c0]] | uniqueParameterizedTypeBindings |
1 | 2 | [[#647e15c0]] | uniqueWildcardBindings |