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 472e426 commit 2cfc7d7Copy full SHA for 2cfc7d7
yaml/src/main/java/com/fasterxml/jackson/dataformat/yaml/YAMLParser.java
@@ -282,7 +282,7 @@ public JsonToken nextToken() throws IOException
282
return null;
283
}
284
285
- while (_yamlParser.hasNext()) {
+ while (true /*_yamlParser.hasNext()*/) {
286
Event evt;
287
try {
288
evt = _yamlParser.next();
@@ -386,8 +386,6 @@ public JsonToken nextToken() throws IOException
386
continue;
387
388
389
- //TODO what should be thrown here ?
390
- throw new RuntimeException("Unexpected events.");
391
392
393
protected JsonToken _decodeScalar(ScalarEvent scalar) throws IOException
0 commit comments