Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Sleuthkit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IRT
Sleuthkit
Commits
f86acd48
Commit
f86acd48
authored
5 years ago
by
Richard Cordovano
Browse files
Options
Downloads
Patches
Plain Diff
6217 Refactor geo json attr utils
parent
149da7b4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bindings/java/src/org/sleuthkit/datamodel/blackboardutils/attributes/BlackboardJsonAttrUtil.java
+3
-3
3 additions, 3 deletions
...el/blackboardutils/attributes/BlackboardJsonAttrUtil.java
with
3 additions
and
3 deletions
bindings/java/src/org/sleuthkit/datamodel/blackboardutils/attributes/BlackboardJsonAttrUtil.java
+
3
−
3
View file @
f86acd48
...
...
@@ -33,7 +33,7 @@ public final class BlackboardJsonAttrUtil {
* object of type T serialized to JSON.
*
* @param <T> The type of the attribute value object to be
* ser
a
ilized.
* seri
a
lized.
* @param attrType The type of attribute to create.
* @param moduleName The name of the module creating the attribute.
* @param attrValue The attribute value object.
...
...
@@ -54,7 +54,7 @@ public static <T> BlackboardAttribute toAttribute(BlackboardAttribute.Type attrT
*
* @param <T> The type of the object to be created from the JSON.
* @param attr The attribute.
* @param clazz
t
he class object for class T.
* @param clazz
T
he class object for class T.
*
* @return The T object from the attribute.
*
...
...
@@ -74,7 +74,7 @@ public static <T> T fromAttribute(BlackboardAttribute attr, Class<T> clazz) thro
try
{
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
);
throw
new
InvalidJsonException
(
String
.
format
(
"The string value (JSON)
could not be deserialized as a %s"
,
clazz
.
getName
())
,
ex
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment