Skip to content
Snippets Groups Projects
Commit 149da7b4 authored by Richard Cordovano's avatar Richard Cordovano
Browse files

6217 Refactor geo json attr utils

parent 151cbecb
Branches
Tags
No related merge requests found
......@@ -72,8 +72,7 @@ public static <T> T fromAttribute(BlackboardAttribute attr, Class<T> clazz) thro
throw new InvalidJsonException("The string value (JSON) of the attribute is null or empty");
}
try {
T object = (new Gson()).fromJson(json, clazz);
return object;
return (new Gson()).fromJson(json, clazz);
} catch (JsonSyntaxException ex) {
throw new InvalidJsonException("The string value (JSON) of the attribute is of an unexpected type", ex);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment