(JsonObject obj, String string)
| 66 | } |
| 67 | |
| 68 | public static float[] getSubAsFloatArray(JsonObject obj, String string) { |
| 69 | if (!obj.has(string)) { |
| 70 | throw new JsonSyntaxException("Required member " + string + " in " + obj); |
| 71 | } |
| 72 | return getAsFloatArray(obj.get(string)); |
| 73 | } |
| 74 | |
| 75 | public static String getAsString(JsonElement element) { |
| 76 | if (!element.isJsonPrimitive()) { |
no test coverage detected