mirror of
https://github.com/revanced/smali.git
synced 2025-04-30 06:34:25 +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.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
|
import java.nio.Buffer;
|
||||||
import java.nio.ByteBuffer;
|
import java.nio.ByteBuffer;
|
||||||
import java.nio.ByteOrder;
|
import java.nio.ByteOrder;
|
||||||
import java.security.MessageDigest;
|
import java.security.MessageDigest;
|
||||||
@ -916,7 +917,7 @@ public abstract class DexWriter<
|
|||||||
tempBuffer.order(ByteOrder.LITTLE_ENDIAN);
|
tempBuffer.order(ByteOrder.LITTLE_ENDIAN);
|
||||||
}
|
}
|
||||||
|
|
||||||
tempBuffer.clear();
|
((Buffer) tempBuffer).clear();
|
||||||
|
|
||||||
int fieldAnnotations = 0;
|
int fieldAnnotations = 0;
|
||||||
int methodAnnotations = 0;
|
int methodAnnotations = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user