Minor. Inlined method with only one call site.
This commit is contained in:
+2
-6
@@ -54,11 +54,6 @@ public class PackagePartClassUtils {
|
||||
return facadeFqName.parent().child(Name.identifier(srcName));
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public static FqName getPackagePartFqName(@NotNull JetFile file) {
|
||||
return getPackagePartFqName(getPackageClassFqName(file.getPackageFqName()), file.getVirtualFile());
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public static Type getPackagePartType(@NotNull JetFile file) {
|
||||
return Type.getObjectType(getPackagePartInternalName(file));
|
||||
@@ -66,7 +61,8 @@ public class PackagePartClassUtils {
|
||||
|
||||
@NotNull
|
||||
public static String getPackagePartInternalName(@NotNull JetFile file) {
|
||||
return JvmClassName.byFqNameWithoutInnerClasses(getPackagePartFqName(file)).getInternalName();
|
||||
FqName fqName = getPackagePartFqName(getPackageClassFqName(file.getPackageFqName()), file.getVirtualFile());
|
||||
return JvmClassName.byFqNameWithoutInnerClasses(fqName).getInternalName();
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
Reference in New Issue
Block a user