MCPcopy Create free account
hub / github.com/apache/solr / checkEOF

Method checkEOF

solr/solrj/src/java/org/noggit/ObjectBuilder.java:50–54  ·  view source on GitHub ↗
(JSONParser p)

Source from the content-addressed store, hash-verified

48 }
49
50 public static void checkEOF(JSONParser p) throws IOException {
51 if (p.nextEvent() != JSONParser.EOF) {
52 throw p.err("Expecting single object only.");
53 }
54 }
55
56 /** consider to use {@link #getValStrict()} */
57 public static Object getVal(JSONParser parser) throws IOException {

Callers 3

fromJSONStrictMethod · 0.95
getValStrictMethod · 0.95
parseMethod · 0.95

Calls 2

errMethod · 0.65
nextEventMethod · 0.45

Tested by

no test coverage detected