Introduced getFqNameSafe method.

This commit is contained in:
Evgeny Gerashchenko
2013-12-04 18:51:06 +04:00
parent 3352d8a954
commit a49551dd35
22 changed files with 50 additions and 37 deletions
@@ -41,7 +41,7 @@ import static org.jetbrains.jet.lang.resolve.DescriptorUtils.getFqName;
public final class JsDescriptorUtils {
// TODO: maybe we should use external annotations or something else.
private static final Set<String> FAKE_CLASSES = ContainerUtil.immutableSet(
getFqName(KotlinBuiltIns.getInstance().getAny()).toSafe().asString(),
getFqNameSafe(KotlinBuiltIns.getInstance().getAny()).asString(),
"jet.Iterable"
);
@@ -82,7 +82,7 @@ public final class JsDescriptorUtils {
@Override
public boolean value(JetType type) {
ClassDescriptor classDescriptor = getClassDescriptorForType(type);
return !FAKE_CLASSES.contains(getFqName(classDescriptor).toSafe().asString());
return !FAKE_CLASSES.contains(getFqNameSafe(classDescriptor).asString());
}
});
}