Mercurial Hosting > luan
changeset 1462:bfbf9c9c1586
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 29 Mar 2020 09:55:59 -0600 |
parents | e5d48b85351c |
children | fb003c4003dd |
files | src/goodjava/lucene/logging/LogFile.java |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/goodjava/lucene/logging/LogFile.java Sat Mar 28 21:30:42 2020 -0600 +++ b/src/goodjava/lucene/logging/LogFile.java Sun Mar 29 09:55:59 2020 -0600 @@ -21,7 +21,7 @@ import org.apache.lucene.util.BytesRef; -public final class LogFile extends RandomAccessFile { +public class LogFile extends RandomAccessFile { private long end; public LogFile(File file,String mode) throws IOException { @@ -193,6 +193,10 @@ public Object readObject() throws IOException { int type = readByte(); + return readObject(type); + } + + protected Object readObject(int type) throws IOException { switch(type) { case TYPE_NULL: return null;