Merge "Remove ByteBuffer prefix which wrongly suppresses a class member."
commit
3592749a4c
|
@ -80,7 +80,7 @@ public class BinaryDictionary extends Dictionary {
|
||||||
InputStream is = context.getResources().openRawResource(resId);
|
InputStream is = context.getResources().openRawResource(resId);
|
||||||
try {
|
try {
|
||||||
int avail = is.available();
|
int avail = is.available();
|
||||||
ByteBuffer mNativeDictDirectBuffer =
|
mNativeDictDirectBuffer =
|
||||||
ByteBuffer.allocateDirect(avail).order(ByteOrder.nativeOrder());
|
ByteBuffer.allocateDirect(avail).order(ByteOrder.nativeOrder());
|
||||||
int got = Channels.newChannel(is).read(mNativeDictDirectBuffer);
|
int got = Channels.newChannel(is).read(mNativeDictDirectBuffer);
|
||||||
if (got != avail) {
|
if (got != avail) {
|
||||||
|
|
Loading…
Reference in New Issue