(Object a, Object value)
| 176 | } |
| 177 | |
| 178 | public static Object plusEqual(Object a, Object value) { |
| 179 | a = normalizeIntIfNeeded(a); |
| 180 | value = normalizeIntIfNeeded(value); |
| 181 | |
| 182 | if (value == null) return null; |
| 183 | if (a instanceof Long && value instanceof Long) { |
| 184 | return (Long) a + (Long) value; |
| 185 | } else if (a instanceof Integer && value instanceof Integer) { |
| 186 | return (Integer) a + (Integer) value; |
| 187 | } else if (a instanceof Double && value instanceof Double) { |
| 188 | return (Double) a + (Double) value; |
| 189 | } else if (a instanceof String && value instanceof String) { |
| 190 | return ((String) a) + ((String) value); |
| 191 | } else { |
| 192 | return null; |
| 193 | } |
| 194 | } |
| 195 | |
| 196 | // In Java, wire up your preferred JSON lib and return Map/List accordingly. |
| 197 | public static Object parseJson(Object json) { |
nothing calls this directly
no test coverage detected