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 87638c5 commit 1f44b29Copy full SHA for 1f44b29
1 file changed
java/src/org/openqa/selenium/json/JsonInput.java
@@ -326,8 +326,7 @@ public boolean hasNext() {
326
327
if (input.peek() == ',') {
328
if (!seenElement) {
329
- throw new JsonException(
330
- "Unexpected ',' before first element of container. " + input);
+ throw new JsonException("Unexpected ',' before first element of container. " + input);
331
}
332
input.read();
333
skipWhitespace(input);
@@ -341,8 +340,7 @@ public boolean hasNext() {
341
340
return false;
342
343
if (seenElement) {
344
345
- "Expected ',' or end of container but saw " + type + ". " + input);
+ throw new JsonException("Expected ',' or end of container but saw " + type + ". " + input);
346
347
return true;
348
0 commit comments