Minor nullness attribute and whitespace tweaks

This commit is contained in:
Ben Gruver 2012-10-21 14:29:52 -07:00
parent 39d2c38685
commit ac7a94a295
2 changed files with 3 additions and 3 deletions

View File

@ -33,13 +33,14 @@ package org.jf.dexlib2.dexbacked;
import org.jf.util.ExceptionWithContext;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
public class DexBuffer {
// 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;
}

View File

@ -227,7 +227,6 @@ public class DexReader {
public int readShort(int offset) { return dexBuf.readShort(offset); }
public int readByte(int offset) { return dexBuf.readByte(offset); }
public int readSizedInt(int bytes) {
int o = offset;
byte[] buf = dexBuf.buf;