MCPcopy Index your code
hub / github.com/antlr/codebuff / get

Method get

output/java_guava/1.4.17/MapMaker.java:405–420  ·  view source on GitHub ↗
(Object key)

Source from the content-addressed store, hash-verified

403 }
404
405 @SuppressWarnings("unchecked") // unsafe, which is one advantage of Cache over Map
406 @Override
407 public V get(Object key) {
408 V value;
409 try {
410 value = getOrCompute((K) key);
411 } catch (ExecutionException e) {
412 Throwable cause = e.getCause();
413 Throwables.propagateIfInstanceOf(cause, ComputationException.class);
414 throw new ComputationException(cause);
415 }
416 if (value == null) {
417 throw new NullPointerException(computingFunction + " returned null for key " + key + ".");
418 }
419 return value;
420 }
421 }
422}

Callers

nothing calls this directly

Calls 3

propagateIfInstanceOfMethod · 0.95
getOrComputeMethod · 0.45
getCauseMethod · 0.45

Tested by

no test coverage detected