MCPcopy Create free account
hub / github.com/antlr/codebuff / getWeigher

Method getWeigher

corpus/java/training/guava/cache/CacheBuilder.java:513–516  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

511
512 // Make a safe contravariant cast now so we don't have to do it over and over.
513 @SuppressWarnings("unchecked")
514 <K1 extends K, V1 extends V> Weigher<K1, V1> getWeigher() {
515 return (Weigher<K1, V1>) MoreObjects.firstNonNull(weigher, OneWeigher.INSTANCE);
516 }
517
518 /**
519 * Specifies that each key (not value) stored in the cache should be wrapped in a

Callers 1

LocalCacheMethod · 0.45

Calls 1

firstNonNullMethod · 0.95

Tested by

no test coverage detected