KT-1508 jet.Number -> j.l.Number

This commit is contained in:
Alex Tkachman
2012-03-17 13:57:45 +02:00
parent d8aa0d139e
commit 56eabfe07b
4 changed files with 18 additions and 4 deletions
@@ -779,6 +779,7 @@ public class JetTypeMapper {
knowTypes.put(standardLibrary.getNullablePrimitiveJetType(primitiveType), jvmPrimitiveType.getWrapper().getAsmType());
}
knowTypes.put(standardLibrary.getNumberType(),JL_NUMBER_TYPE);
knowTypes.put(standardLibrary.getStringType(),JL_STRING_TYPE);
knowTypes.put(standardLibrary.getNullableStringType(),JL_STRING_TYPE);
knowTypes.put(standardLibrary.getCharSequenceType(),JL_CHAR_SEQUENCE_TYPE);
@@ -798,10 +799,6 @@ public class JetTypeMapper {
|| className.getFqName().equals("java.lang.String") || className.getFqName().equals("java.lang.Object");
}
public String isKnownTypeInfo(JetType jetType) {
return knowTypeNames.get(jetType);
}
public boolean isGenericsArray(JetType type) {
DeclarationDescriptor declarationDescriptor = type.getConstructor().getDeclarationDescriptor();
if(declarationDescriptor instanceof TypeParameterDescriptor)