Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
acdc
repository-extension-services
Commits
a0851f1e
Commit
a0851f1e
authored
Sep 07, 2016
by
acoburn
Browse files
fix deprecation warning
parent
34eaa525
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
acrepo-services-jsonld/src/main/java/edu/amherst/acdc/services/jsonld/JsonLdServiceImpl.java
...a/edu/amherst/acdc/services/jsonld/JsonLdServiceImpl.java
+2
-1
No files found.
acrepo-services-jsonld/src/main/java/edu/amherst/acdc/services/jsonld/JsonLdServiceImpl.java
View file @
a0851f1e
...
...
@@ -17,6 +17,7 @@ package edu.amherst.acdc.services.jsonld;
import
static
com
.
github
.
jsonldjava
.
utils
.
JsonUtils
.
fromInputStream
;
import
static
com
.
github
.
jsonldjava
.
utils
.
JsonUtils
.
fromURL
;
import
static
com
.
github
.
jsonldjava
.
utils
.
JsonUtils
.
getDefaultHttpClient
;
import
static
org
.
slf4j
.
LoggerFactory
.
getLogger
;
import
java.io.InputStream
;
...
...
@@ -66,7 +67,7 @@ public class JsonLdServiceImpl implements JsonLdService {
LOGGER
.
info
(
"using context from: {}"
,
contextUrl
);
try
{
return
doCompact
(
input
,
fromURL
(
new
URL
(
contextUrl
)));
return
doCompact
(
input
,
fromURL
(
new
URL
(
contextUrl
)
,
getDefaultHttpClient
()
));
}
catch
(
final
MalformedURLException
ex
)
{
throw
new
RuntimeException
(
"Invalid URL"
,
ex
);
}
catch
(
final
JsonParseException
ex
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment