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:
Alexander Udalov
2013-09-27 17:42:28 +04:00
parent 45bc7c2926
commit 6898274f47
8 changed files with 38 additions and 60 deletions
@@ -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;
}