Delete JvmClassName.getDescriptor()
It shouldn't be available in descriptor.loader.java, since it wouldn't depend on ASM and its descriptors won't make any sense there. Most of the places where this method was used were in codegen. The few exceptions are reading annotations for compiled Kotlin classes by ASM visitors, but that will be abstracted away soon
This commit is contained in:
+1
-10
@@ -81,7 +81,6 @@ public class JvmClassName {
|
||||
|
||||
private final String internalName;
|
||||
private FqName fqName;
|
||||
private String descriptor;
|
||||
private Type asmType;
|
||||
|
||||
private JvmClassName(@NotNull String internalName) {
|
||||
@@ -101,18 +100,10 @@ public class JvmClassName {
|
||||
return internalName;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public String getDescriptor() {
|
||||
if (descriptor == null) {
|
||||
descriptor = "L" + internalName + ';';
|
||||
}
|
||||
return descriptor;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public Type getAsmType() {
|
||||
if (asmType == null) {
|
||||
asmType = Type.getType(getDescriptor());
|
||||
asmType = Type.getType("L" + internalName + ';');
|
||||
}
|
||||
return asmType;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user