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

Method getValStrict

solr/solrj/src/java/org/noggit/ObjectBuilder.java:65–69  ·  view source on GitHub ↗

like #getVal(), but also check that there is nothing remaining in the given stream after closing bracket. Throws ParseException otherwise.

(JSONParser parser)

Source from the content-addressed store, hash-verified

63 * after closing bracket. Throws {@link ParseException} otherwise.
64 */
65 public static Object getValStrict(JSONParser parser) throws IOException {
66 final Object val = getVal(parser);
67 checkEOF(parser);
68 return val;
69 }
70
71 /**
72 * like {@link #getVal()}, but also check that there is nothing remaining in the given stream

Callers 4

testStrictPositiveMethod · 0.95
parseInputStreamMethod · 0.80
fromJSONMethod · 0.80
fromJSONStringMethod · 0.80

Calls 2

getValMethod · 0.95
checkEOFMethod · 0.95

Tested by 1

testStrictPositiveMethod · 0.76