Remove FqNameBase, simplify FqName and FqNameUnsafe

This commit is contained in:
Alexander Udalov
2015-10-20 21:27:31 +03:00
parent 894a97a549
commit 8a89662ea5
16 changed files with 45 additions and 143 deletions
@@ -312,7 +312,7 @@ public class SingleAbstractMethodUtils {
@Nullable
public static JavaMethod getSamInterfaceMethod(@NotNull JavaClass javaClass) {
FqName fqName = javaClass.getFqName();
if (fqName == null || fqName.firstSegmentIs(KotlinBuiltIns.BUILT_INS_PACKAGE_NAME)) {
if (fqName == null || fqName.toUnsafe().startsWith(KotlinBuiltIns.BUILT_INS_PACKAGE_NAME)) {
return null;
}
if (!javaClass.isInterface() || javaClass.isAnnotationType()) {