Skip to content
Snippets Groups Projects
Commit 6b2e4098 authored by buczekp's avatar buczekp
Browse files

minor: reuse existing code

SVN: 20691
parent 3641b112
No related branches found
No related tags found
No related merge requests found
...@@ -20,9 +20,7 @@ import java.io.BufferedInputStream; ...@@ -20,9 +20,7 @@ import java.io.BufferedInputStream;
import java.io.File; import java.io.File;
import java.io.FileInputStream; import java.io.FileInputStream;
import java.io.FileNotFoundException; import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
import java.io.RandomAccessFile;
import ch.systemsx.cisd.base.exceptions.CheckedExceptionTunnel; import ch.systemsx.cisd.base.exceptions.CheckedExceptionTunnel;
import ch.systemsx.cisd.base.io.IRandomAccessFile; import ch.systemsx.cisd.base.io.IRandomAccessFile;
...@@ -85,12 +83,6 @@ public class FileBasedContent implements IContent ...@@ -85,12 +83,6 @@ public class FileBasedContent implements IContent
public IRandomAccessFile getReadOnlyRandomAccessFile() public IRandomAccessFile getReadOnlyRandomAccessFile()
{ {
try return new RandomAccessFileImpl(file, "r");
{
return new RandomAccessFileImpl(new RandomAccessFile(file, "r"));
} catch (IOException ex)
{
throw CheckedExceptionTunnel.wrapIfNecessary(ex);
}
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment