replace String with JvmClassName

This commit is contained in:
Stepan Koltsov
2012-05-11 01:08:33 +04:00
parent 9908791094
commit ded824468a
9 changed files with 33 additions and 22 deletions
@@ -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;