<BUG>if(element.isJsonPrimitive() && element.getAsJsonPrimitive().isNumber()) {</BUG><CONTEXT>throw wrongTypeException(key, "boolean");}}public Number getNumber(JsonObject jsonObject, String key) throws CommonException {JsonElement element = jsonObject.get(key);<extra_id_0>return element.getAsNumber();} else {throw wrongTypeException(key, "Number");</CONTEXT>
if(element != null && element.isJsonPrimitive() && element.getAsJsonPrimitive().isNumber()) {