X-Git-Url: http://gitweb.fperrin.net/?a=blobdiff_plain;f=src%2Fcom%2Fhughes%2Fandroid%2Fdictionary%2Fengine%2FDictionary.java;h=0eb8007f07f9307fe0f44306e980d3f4f546d57b;hb=83d497f704ad1f8ba85190255d46a3fbe0e3c353;hp=4543b7bbc7866a8f0ad022cc52225cfcb26e032e;hpb=0d6b69d8819c937eed8a911f491146b76a9b1300;p=Dictionary.git diff --git a/src/com/hughes/android/dictionary/engine/Dictionary.java b/src/com/hughes/android/dictionary/engine/Dictionary.java index 4543b7b..0eb8007 100644 --- a/src/com/hughes/android/dictionary/engine/Dictionary.java +++ b/src/com/hughes/android/dictionary/engine/Dictionary.java @@ -95,7 +95,7 @@ public class Dictionary implements RAFSerializable { if (dictFileVersion >= 5) { htmlEntries = CachingList.create( RAFList.create(ch, new HtmlEntry.Serializer(this, ch), ch.position(), dictFileVersion, dictInfo + " html: "), - CACHE_SIZE, true); + CACHE_SIZE, false); } else { htmlEntries = Collections.emptyList(); } @@ -107,8 +107,7 @@ public class Dictionary implements RAFSerializable { indices = CachingList.createFullyCached(RAFList.create(ch, new IndexSerializer(ch), ch.position(), dictFileVersion, dictInfo + " index: ")); } catch (RuntimeException e) { - final IOException ioe = new IOException("RuntimeException loading dictionary"); - ioe.initCause(e); + final IOException ioe = new IOException("RuntimeException loading dictionary", e); throw ioe; } final String end = raf.readUTF(); @@ -156,11 +155,11 @@ public class Dictionary implements RAFSerializable { public void write(DataOutput raf, Index t) throws IOException { t.write(raf); } - }; + } final RAFListSerializer htmlEntryIndexSerializer = new RAFListSerializer() { @Override - public void write(DataOutput raf, HtmlEntry t) throws IOException { + public void write(DataOutput raf, HtmlEntry t) { assert false; }