public final short getTargetUnit(int baseAddress) {
    int relativeTarget = getTarget(baseAddress);

    if (relativeTarget != (short) relativeTarget) {
      throw new DexException("Target out of range: " + Hex.s4(relativeTarget));
    }

    return (short) relativeTarget;
  }
Gets the target as a relative offset from the given base address, as a code unit. This will
throw if the value is out of the range of a signed code unit.
android/android_framework/dex-maker/src/main/java/com/android/dx/io/instructions/DecodedInstruction.java