Better assertions message
This commit is contained in:
@@ -395,11 +395,11 @@ public class CodegenBinding {
|
|||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
public static String getJvmInternalName(@NotNull BindingContext bindingContext, @NotNull ClassDescriptor classDescriptor) {
|
public static String getJvmInternalName(@NotNull BindingContext bindingContext, @NotNull ClassDescriptor classDescriptor) {
|
||||||
Type asmType = bindingContext.get(CodegenBinding.ASM_TYPE, classDescriptor);
|
Type asmType = bindingContext.get(ASM_TYPE, classDescriptor);
|
||||||
assert (asmType != null);
|
assert asmType != null : "ASM_TYPE not present for " + classDescriptor;
|
||||||
|
|
||||||
String jvmInternalName = asmType.getClassName();
|
String jvmInternalName = asmType.getClassName();
|
||||||
assert (jvmInternalName != null);
|
assert jvmInternalName != null : "No internal name for " + asmType + " for class " + classDescriptor;
|
||||||
|
|
||||||
return jvmInternalName;
|
return jvmInternalName;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user