Skip to content

Commit

Permalink
Class is an instanceof Type
Browse files Browse the repository at this point in the history
So it should be safe to remove Json.toType(Object, Class<?>)
  • Loading branch information
shs96c committed Apr 13, 2018
1 parent f539288 commit 1b53df2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions java/client/src/org/openqa/selenium/json/Json.java
Expand Up @@ -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) {
Expand Down

0 comments on commit 1b53df2

Please sign in to comment.