Ejemplo n.º 1
0
 public void swapUnresolved(
     UnresolvedReferenceBinding unresolvedType,
     ReferenceBinding resolvedType,
     LookupEnvironment env) {
   if (this.leafComponentType == unresolvedType) {
     this.leafComponentType = env.convertUnresolvedBinaryToRawType(resolvedType);
     this.tagBits |=
         this.leafComponentType.tagBits
             & (TagBits.HasTypeVariable | TagBits.HasDirectWildcard | TagBits.HasMissingType);
   }
 }
 public void swapUnresolved(
     UnresolvedReferenceBinding unresolvedType,
     ReferenceBinding resolvedType,
     LookupEnvironment env) {
   boolean affected = false;
   if (this.genericType == unresolvedType) {
     this.genericType = resolvedType; // no raw conversion
     affected = true;
   }
   if (this.bound == unresolvedType) {
     this.bound = env.convertUnresolvedBinaryToRawType(resolvedType);
     affected = true;
   }
   if (this.otherBounds != null) {
     for (int i = 0, length = this.otherBounds.length; i < length; i++) {
       if (this.otherBounds[i] == unresolvedType) {
         this.otherBounds[i] = env.convertUnresolvedBinaryToRawType(resolvedType);
         affected = true;
       }
     }
   }
   if (affected) initialize(this.genericType, this.bound, this.otherBounds);
 }