Class is an instanceof Type
So it should be safe to remove Json.toType(Object, Class<?>)
@@ -68,10 +68,6 @@ public JsonElement toJsonElement(Object toConvert) {
return toJson.convertObject(toConvert);
}
- public <T> T toType(Object source, Class<T> typeOfT) {
- return toBean.convert(typeOfT, source);
- }
-
public <T> T toType(Object source, Type typeOfT) {
Class<?> type;
if (typeOfT instanceof ParameterizedType) {
