ben-manes / caffeine

Classes that contain only static members should not be instantiated JAVA-W1035
Anti-pattern
Major
1 occurrence in this check
NullMapCompletionException doesn't need to be instantiated
 244
 245      if (result == null) {
 246        if (error == null) {
 247          error = new NullMapCompletionException(); 248        }
 249        for (var entry : proxies.entrySet()) {
 250          cache.remove(entry.getKey(), entry.getValue());