From 149da7b4505d2a28434dc6986155bf7e775a121b Mon Sep 17 00:00:00 2001 From: Richard Cordovano <rcordovano@basistech.com> Date: Thu, 2 Apr 2020 20:43:11 -0400 Subject: [PATCH] 6217 Refactor geo json attr utils --- .../blackboardutils/attributes/BlackboardJsonAttrUtil.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bindings/java/src/org/sleuthkit/datamodel/blackboardutils/attributes/BlackboardJsonAttrUtil.java b/bindings/java/src/org/sleuthkit/datamodel/blackboardutils/attributes/BlackboardJsonAttrUtil.java index eea08024b..812f02c13 100755 --- a/bindings/java/src/org/sleuthkit/datamodel/blackboardutils/attributes/BlackboardJsonAttrUtil.java +++ b/bindings/java/src/org/sleuthkit/datamodel/blackboardutils/attributes/BlackboardJsonAttrUtil.java @@ -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); } -- GitLab