private void visitLiteralInt(int opcode, int offset, int length, int value) {
    String commentOrSpace = (length == 1) ? " // " : " ";
    String valueStr;

    opcode = bytes.getUnsignedByte(offset); // Compare with orig op below.
    if ((length == 1) || (opcode == ByteOps.BIPUSH)) {
      valueStr = "#" + Hex.s1(value);
    } else if (opcode == ByteOps.SIPUSH) {
      valueStr = "#" + Hex.s2(value);
    } else {
      valueStr = "#" + Hex.s4(value);
    }

    observer.parsed(bytes, offset, length, header(offset) + commentOrSpace + valueStr);
  }
Helper for {@link #visitConstant} where the constant is an {@code int}.

@param opcode the opcode
@param offset offset to the instruction
@param length instruction length
@param value constant value
android/android_framework/dex-maker/src/main/java/com/android/dx/cf/direct/CodeObserver.java