Skip to content

Commit 1b53df2

Browse files
committed
Class is an instanceof Type
So it should be safe to remove Json.toType(Object, Class<?>)
1 parent f539288 commit 1b53df2

File tree

1 file changed

+0
-4
lines changed
  • java/client/src/org/openqa/selenium/json

1 file changed

+0
-4
lines changed

java/client/src/org/openqa/selenium/json/Json.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,6 @@ public JsonElement toJsonElement(Object toConvert) {
6868
return toJson.convertObject(toConvert);
6969
}
7070

71-
public <T> T toType(Object source, Class<T> typeOfT) {
72-
return toBean.convert(typeOfT, source);
73-
}
74-
7571
public <T> T toType(Object source, Type typeOfT) {
7672
Class<?> type;
7773
if (typeOfT instanceof ParameterizedType) {

0 commit comments

Comments
 (0)