1600160116021603160416051606
public static int toInt(long value) { if (value <= java.lang.Integer.MAX_VALUE && value >= java.lang.Integer.MIN_VALUE) { return (int)value; } throw new OverflowException(); }
1619162016211622162316241625
public static short toShort(long value) { if (value <= java.lang.Short.MAX_VALUE && value >= java.lang.Short.MIN_VALUE) { return (short)value; } throw new OverflowException(); }
1639164016411642164316441645
public static byte toByte(long value) { if (value <= java.lang.Byte.MAX_VALUE && value >= java.lang.Byte.MIN_VALUE) { return (byte)value; } throw new OverflowException(); }
162163164165166167168169170171172173174175
public void reportOverflow(String msg) { switch(overflowHandling) { case WARN: warnClient(new OverflowException()); break; case ERROR: throw new OverflowException(); case IGNORE: // ignores, does nothing break; default: throw new AssertionError(overflowHandling);