3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-01-31 07:12:17 +00:00

Make a field static. Resolves comments by Miron on r194.

This commit is contained in:
Mike Hearn 2011-09-15 16:22:33 +00:00
parent 0315b3a5e6
commit 99385e7aee

View File

@ -61,7 +61,7 @@ public class BoundedOverheadBlockStore implements BlockStore {
//
// We don't care about the value in this cache. It is always notFoundMarker. Unfortunately LinkedHashSet does not
// provide the removeEldestEntry control.
private final StoredBlock notFoundMarker = new StoredBlock(null, null, -1);
private static final StoredBlock notFoundMarker = new StoredBlock(null, null, -1);
private LinkedHashMap<Sha256Hash, StoredBlock> notFoundCache = new LinkedHashMap<Sha256Hash, StoredBlock>() {
@Override
protected boolean removeEldestEntry(Map.Entry<Sha256Hash, StoredBlock> entry) {