Byte buf = in.readByte();
//if the most significant bit is 0 it's an internalStaticFieldRef
if ((buf & 0x80) == 0) {
short offset = in.readShort();
staticFieldRef = new InternalStaticFieldRef();
((InternalStaticFieldRef) staticFieldRef).setPadding(buf);
((InternalStaticFieldRef) staticFieldRef).setOffset(offset);
} else {
//case of an externalStaticFieldRef