mirror of
https://github.com/revanced/Apktool.git
synced 2025-06-12 05:07:41 +02:00
refactor: Replace to nio & apply CS inspection skips (#3055)
This commit is contained in:
@ -127,7 +127,7 @@ public abstract class TestUtils {
|
||||
|
||||
public static byte[] readHeaderOfFile(File file, int size) throws IOException {
|
||||
byte[] buffer = new byte[size];
|
||||
InputStream inputStream = new FileInputStream(file);
|
||||
InputStream inputStream = Files.newInputStream(file.toPath());
|
||||
if (inputStream.read(buffer) != buffer.length) {
|
||||
throw new IOException("File size too small for buffer length: " + size);
|
||||
}
|
||||
|
Reference in New Issue
Block a user