]> gitweb.fperrin.net Git - DictionaryPC.git/blobdiff - src/com/hughes/android/dictionary/engine/DictionaryBuilderTest.java
Switch to FileChannel and using Util from Dictionary subproject.
[DictionaryPC.git] / src / com / hughes / android / dictionary / engine / DictionaryBuilderTest.java
index 7669414a4e37235d68aed3ffc8004ff8395e97e6..72ad9eba138e81f957c4633ba661eacefeb00b5a 100644 (file)
@@ -352,7 +352,7 @@ public class DictionaryBuilderTest extends TestCase {
         assertFilesEqual(GOLDENS + dictName + ".text", dictFile.getPath() + ".text");
 
         // Check it again.
-        final Dictionary dict = new Dictionary(new RandomAccessFile(dictFile.getAbsolutePath(), "r"));
+        final Dictionary dict = new Dictionary(new RandomAccessFile(dictFile.getAbsolutePath(), "r").getChannel());
         final PrintStream out = new PrintStream(new File(dictFile.getPath() + ".text"));
         dict.print(out);
         out.close();