Update DictionaryData.java

This commit is contained in:
Eugene Kliuchnikov 2018-09-12 11:56:59 -04:00 committed by GitHub
parent abca27920d
commit b650936954
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,6 +7,7 @@
package org.brotli.dec;
import java.io.UnsupportedEncodingException;
import java.nio.Buffer;
import java.nio.ByteBuffer;
/**
@ -53,7 +54,7 @@ final class DictionaryData {
static {
ByteBuffer dictionary = ByteBuffer.allocateDirect(122784);
unpackDictionaryData(dictionary, DATA0, DATA1, SKIP_FLIP);
dictionary.flip();
((Buffer) dictionary).flip();
Dictionary.setData(dictionary.asReadOnlyBuffer());
}
}