Fix comment Project: http://git-wip-us.apache.org/repos/asf/jena/repo Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/03b4b72f Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/03b4b72f Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/03b4b72f
Branch: refs/heads/master Commit: 03b4b72f2d955d66243f80d0ea6ca12511d10178 Parents: 186ee41 Author: Andy Seaborne <[email protected]> Authored: Tue May 30 12:28:12 2017 +0100 Committer: Andy Seaborne <[email protected]> Committed: Wed May 31 13:16:59 2017 +0100 ---------------------------------------------------------------------- .../org/apache/jena/tdb/base/block/BlockMgrCache.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/jena/blob/03b4b72f/jena-tdb/src/main/java/org/apache/jena/tdb/base/block/BlockMgrCache.java ---------------------------------------------------------------------- diff --git a/jena-tdb/src/main/java/org/apache/jena/tdb/base/block/BlockMgrCache.java b/jena-tdb/src/main/java/org/apache/jena/tdb/base/block/BlockMgrCache.java index 4b884e8..b82c42b 100644 --- a/jena-tdb/src/main/java/org/apache/jena/tdb/base/block/BlockMgrCache.java +++ b/jena-tdb/src/main/java/org/apache/jena/tdb/base/block/BlockMgrCache.java @@ -19,7 +19,6 @@ package org.apache.jena.tdb.base.block; import java.util.Iterator ; -import java.util.function.BiConsumer; import org.apache.jena.atlas.lib.Cache ; import org.apache.jena.atlas.lib.CacheFactory ; @@ -29,7 +28,7 @@ import org.slf4j.LoggerFactory ; /** Caching block manager - this is an LRU cache */ public class BlockMgrCache extends BlockMgrSync { - // Actually, this is two cache one on the read blocks and one on the write blocks. + // Actually, this is two caches, one on the read blocks and one on the write blocks. // The overridden public operations are sync'ed. // As sync is on "this", it also covers all the other operations via BlockMgrSync @@ -67,10 +66,7 @@ public class BlockMgrCache extends BlockMgrSync else { writeCache = CacheFactory.createCache(writeSlots) ; - writeCache.setDropHandler(new BiConsumer<Long, Block>(){ - @Override - public void accept(Long id, Block block) - { + writeCache.setDropHandler((id, block) -> { // We're inside a synchronized operation at this point. log("Cache spill: write block: %d", id) ; if (block == null) @@ -82,7 +78,7 @@ public class BlockMgrCache extends BlockMgrSync // by sending it to the wrapped BlockMgr BlockMgrCache.super.write(block) ; } - }) ; + ) ; } }
