ben-manes / caffeine

Map compute methods cannot be used to create null valued entries JAVA-W1011
Anti-pattern
Major
6 days ago9 months old
105    cache.put(key, "1");
106    // simultaneous deletion
107    doParallelCacheOp(count, n -> {
108      cache.asMap().compute(key, (k, v) -> null);109    });
110    assertEquals(0, cache.size());
111  }