Lines 177-183
Link Here
|
177 |
} |
177 |
} |
178 |
if (substitutedArguments != originalArguments || substitutedEnclosing != originalEnclosing) { |
178 |
if (substitutedArguments != originalArguments || substitutedEnclosing != originalEnclosing) { |
179 |
identicalVariables: { // if substituted with original variables, then answer the generic type itself |
179 |
identicalVariables: { // if substituted with original variables, then answer the generic type itself |
180 |
if (substitutedEnclosing != originalEnclosing) break identicalVariables; |
180 |
if (substitutedEnclosing != null) { |
|
|
181 |
if (!(substitutedEnclosing instanceof SourceTypeBinding)) break identicalVariables; |
182 |
if (substitutedEnclosing != originalEnclosing) break identicalVariables; |
183 |
} |
181 |
if (originalParameterizedType.type.isBinaryBinding()) break identicalVariables; // generic binary is never used as is, see 85262 |
184 |
if (originalParameterizedType.type.isBinaryBinding()) break identicalVariables; // generic binary is never used as is, see 85262 |
182 |
TypeVariableBinding[] originalVariables = originalParameterizedType.type.typeVariables(); |
185 |
TypeVariableBinding[] originalVariables = originalParameterizedType.type.typeVariables(); |
183 |
for (int i = 0, length = originalVariables.length; i < length; i++) { |
186 |
for (int i = 0, length = originalVariables.length; i < length; i++) { |