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

Method fromJSON

solr/solrj/src/java/org/apache/solr/common/util/Utils.java:279–286  ·  view source on GitHub ↗
(byte[] utf8)

Source from the content-addressed store, hash-verified

277 // Need below check in both fromJSON methods since
278 // utf8.length returns a NPE without this check.
279 if (utf8 == null || utf8.length == 0) {
280 return Map.of();
281 }
282 return fromJSON(utf8, 0, utf8.length);
283 }
284
285 public static Object fromJSON(byte[] utf8, int offset, int length) {
286 return fromJSON(utf8, offset, length, STANDARDOBJBUILDER);
287 }
288
289 public static Object fromJSON(

Callers 15

parseRmetaJsonMethod · 0.95
parseMethod · 0.95
loadGoldFileMethod · 0.95
testPropertiesMethod · 0.95
downAllReplicasMethod · 0.95

Calls 4

getJSONParserMethod · 0.95
getValStrictMethod · 0.80
applyMethod · 0.65
ofMethod · 0.45

Tested by 15

loadGoldFileMethod · 0.76
testPropertiesMethod · 0.76
downAllReplicasMethod · 0.76
testAPIMethod · 0.76
testSolrUrlStatusMethod · 0.76