Skip to content

Commit 2817776

Browse files
committed
remove type warning
1 parent 2cb8736 commit 2817776

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

java/src/org/openqa/selenium/bidi/module/Network.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,9 @@ public class Network implements AutoCloseable {
7272
private final Function<JsonInput, BytesValue> getDataResultMapper =
7373
jsonInput -> {
7474
Map<String, Object> result = jsonInput.read(Map.class);
75-
@SuppressWarnings("unchecked")
76-
Map<String, Object> bytesMap = (Map<String, Object>) result.get("bytes");
75+
Object bytesObj = result.get("bytes");
7776

78-
try (StringReader reader = new StringReader(JSON.toJson(bytesMap));
77+
try (StringReader reader = new StringReader(JSON.toJson(bytesObj));
7978
JsonInput bytesInput = JSON.newInput(reader)) {
8079
return BytesValue.fromJson(bytesInput);
8180
}

0 commit comments

Comments
 (0)