We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cb8736 commit 2817776Copy full SHA for 2817776
java/src/org/openqa/selenium/bidi/module/Network.java
@@ -72,10 +72,9 @@ public class Network implements AutoCloseable {
72
private final Function<JsonInput, BytesValue> getDataResultMapper =
73
jsonInput -> {
74
Map<String, Object> result = jsonInput.read(Map.class);
75
- @SuppressWarnings("unchecked")
76
- Map<String, Object> bytesMap = (Map<String, Object>) result.get("bytes");
+ Object bytesObj = result.get("bytes");
77
78
- try (StringReader reader = new StringReader(JSON.toJson(bytesMap));
+ try (StringReader reader = new StringReader(JSON.toJson(bytesObj));
79
JsonInput bytesInput = JSON.newInput(reader)) {
80
return BytesValue.fromJson(bytesInput);
81
}
0 commit comments