replace String with JvmClassName
This commit is contained in:
@@ -42,6 +42,14 @@ public class JvmClassName {
|
||||
return r;
|
||||
}
|
||||
|
||||
public static JvmClassName byType(@NotNull Type type) {
|
||||
if (type.getSort() != Type.OBJECT) {
|
||||
throw new IllegalArgumentException(
|
||||
"must be an object to be converted to " + JvmClassName.class.getSimpleName());
|
||||
}
|
||||
return byInternalName(type.getInternalName());
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public FqName getFqName() {
|
||||
return fqName;
|
||||
|
||||
Reference in New Issue
Block a user