CloneSet2727


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6210.991statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
161209
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/LookupEnvironment.java
261219
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/LookupEnvironment.java
Clone Instance
1
Line Count
6
Source Line
1209
Source File
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;
                        }
                }
        }


Clone Instance
2
Line Count
6
Source Line
1219
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/LookupEnvironment.java

        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;
                        }
                }
        }


Clone AbstractionParameter Count: 1Parameter Bindings

// 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#647e15c0]]
uniqueParameterizedTypeBindings 
12[[#647e15c0]]
uniqueWildcardBindings