From: Reimar Döffinger Date: Sun, 30 Oct 2016 00:17:07 +0000 (+0200) Subject: Get rid of pointless double-caching. X-Git-Url: http://gitweb.fperrin.net/?p=Dictionary.git;a=commitdiff_plain;h=5c30972efc8d237f7c1f99a5743d1d39babf1dbe Get rid of pointless double-caching. --- diff --git a/src/com/hughes/android/dictionary/engine/Index.java b/src/com/hughes/android/dictionary/engine/Index.java index e52ac62..88aa22d 100644 --- a/src/com/hughes/android/dictionary/engine/Index.java +++ b/src/com/hughes/android/dictionary/engine/Index.java @@ -227,7 +227,7 @@ public final class Index implements RAFSerializable { for (int i = 0; i < size; ++i) { htmlEntryIndices[i] = StringUtil.readVarInt(raf); } - this.htmlEntries = CachingList.create(new AbstractList() { + this.htmlEntries = new AbstractList() { @Override public HtmlEntry get(int i) { return index.dict.htmlEntries.get(htmlEntryIndices[i]); @@ -236,7 +236,7 @@ public final class Index implements RAFSerializable { public int size() { return htmlEntryIndices.length; } - }, 1); + }; } } else if (index.dict.dictFileVersion >= 6) { this.htmlEntries = CachingList.create(