Approximating flexible types in descriptor renderer

This commit is contained in:
Andrey Breslav
2014-09-18 19:12:10 +04:00
parent 40932f84c8
commit fe2fb60daf
34 changed files with 149 additions and 77 deletions
@@ -608,7 +608,7 @@ public class SignaturesPropagationData {
boolean annotatedAsNotNull = howThisTypeIsUsed != TYPE_ARGUMENT && !TypeUtils.isNullableType(autoType);
if (annotatedAsNotNull && someSupersNotCovariantNullable) {
DescriptorRenderer renderer = DescriptorRenderer.SOURCE_CODE_SHORT_NAMES_IN_TYPES;
DescriptorRenderer renderer = DescriptorRenderer.SHORT_NAMES_IN_TYPES;
reportError("In superclass type is nullable: " + typesFromSuper + ", in subclass it is not: " + renderer.renderType(autoType));
return true;
}