Minor, use another constructor of ClassId

This commit is contained in:
Alexander Udalov
2014-09-16 11:32:45 +04:00
parent b0539ac7a4
commit ed92eb1d17
5 changed files with 5 additions and 6 deletions
@@ -25,7 +25,7 @@ public final class ClassId {
@NotNull
public static ClassId topLevel(@NotNull FqName topLevelFqName) {
return new ClassId(topLevelFqName.parent(), FqNameUnsafe.topLevel(topLevelFqName.shortName()));
return new ClassId(topLevelFqName.parent(), topLevelFqName.shortName());
}
private final FqName packageFqName;
@@ -65,7 +65,7 @@ public class DeserializedPackageMemberScope extends DeserializedMemberScope {
@Nullable
@Override
protected ClassDescriptor getClassDescriptor(@NotNull Name name) {
return ContextPackage.deserializeClass(context, new ClassId(packageFqName, FqNameUnsafe.topLevel(name)));
return ContextPackage.deserializeClass(context, new ClassId(packageFqName, name));
}
@Override