mirror of
https://github.com/revanced/smali.git
synced 2025-05-07 09:54:34 +02:00
Minor nullness attribute and whitespace tweaks
This commit is contained in:
parent
39d2c38685
commit
ac7a94a295
@ -33,13 +33,14 @@ package org.jf.dexlib2.dexbacked;
|
|||||||
|
|
||||||
import org.jf.util.ExceptionWithContext;
|
import org.jf.util.ExceptionWithContext;
|
||||||
|
|
||||||
|
import javax.annotation.Nonnull;
|
||||||
import javax.annotation.Nullable;
|
import javax.annotation.Nullable;
|
||||||
|
|
||||||
public class DexBuffer {
|
public class DexBuffer {
|
||||||
// TODO: consider using a direct ByteBuffer instead
|
// TODO: consider using a direct ByteBuffer instead
|
||||||
protected final byte[] buf;
|
@Nonnull protected final byte[] buf;
|
||||||
|
|
||||||
public DexBuffer(byte[] buf) {
|
public DexBuffer(@Nonnull byte[] buf) {
|
||||||
this.buf = buf;
|
this.buf = buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -227,7 +227,6 @@ public class DexReader {
|
|||||||
public int readShort(int offset) { return dexBuf.readShort(offset); }
|
public int readShort(int offset) { return dexBuf.readShort(offset); }
|
||||||
public int readByte(int offset) { return dexBuf.readByte(offset); }
|
public int readByte(int offset) { return dexBuf.readByte(offset); }
|
||||||
|
|
||||||
|
|
||||||
public int readSizedInt(int bytes) {
|
public int readSizedInt(int bytes) {
|
||||||
int o = offset;
|
int o = offset;
|
||||||
byte[] buf = dexBuf.buf;
|
byte[] buf = dexBuf.buf;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user