Github user danielsun1106 commented on a diff in the pull request: https://github.com/apache/groovy/pull/679#discussion_r178419989 --- Diff: src/main/java/org/codehaus/groovy/runtime/memoize/StampedCommonCache.java --- @@ -199,20 +208,35 @@ public int size() { return doWithReadLock(c -> c.size()); } + @Override + public boolean isEmpty() { + return commonCache.isEmpty(); + } + /** * {@inheritDoc} */ @Override - public V remove(final K key) { + public V remove(final Object key) { return doWithWriteLock(c -> c.remove(key)); } + @Override + public void putAll(Map<? extends K, ? extends V> m) { + --- End diff -- The implementation is missing and should be protected by `doWithWriteLock`
---