mirror of
https://github.com/revanced/smali.git
synced 2025-04-29 22:24:26 +02:00
fix: Cast java.nio.ByteBuffer to support java6-8
- affected methods -- position -- limit -- flip -- clear
This commit is contained in:
parent
0e53c0fd0f
commit
e4746fbd75
@ -69,6 +69,7 @@ import java.io.ByteArrayOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
import java.nio.Buffer;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.nio.ByteOrder;
|
||||
import java.security.MessageDigest;
|
||||
@ -916,7 +917,7 @@ public abstract class DexWriter<
|
||||
tempBuffer.order(ByteOrder.LITTLE_ENDIAN);
|
||||
}
|
||||
|
||||
tempBuffer.clear();
|
||||
((Buffer) tempBuffer).clear();
|
||||
|
||||
int fieldAnnotations = 0;
|
||||
int methodAnnotations = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user