(Object value)
| 1049 | } |
| 1050 | |
| 1051 | public static Object opNeg(Object value) { |
| 1052 | if (value == null) { |
| 1053 | return null; |
| 1054 | } |
| 1055 | |
| 1056 | if (value instanceof Byte) { |
| 1057 | byte v = (Byte) value; |
| 1058 | return (byte) -v; |
| 1059 | } |
| 1060 | if (value instanceof Short v) { |
| 1061 | return (short) -v; |
| 1062 | } |
| 1063 | if (value instanceof Integer v) { |
| 1064 | return -v; |
| 1065 | } |
| 1066 | if (value instanceof Long v) { |
| 1067 | return -v; |
| 1068 | } |
| 1069 | if (value instanceof Float v) { |
| 1070 | return -v; |
| 1071 | } |
| 1072 | if (value instanceof Double v) { |
| 1073 | return -v; |
| 1074 | } |
| 1075 | |
| 1076 | return null; |
| 1077 | } |
| 1078 | |
| 1079 | public static void throwDynamicException(Object exception, Object message) { |
| 1080 | if (exception == null) { |
no outgoing calls