Commit a0851f1e authored by acoburn's avatar acoburn
Browse files

fix deprecation warning

parent 34eaa525
......@@ -17,6 +17,7 @@ package;
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;
......@@ -66,7 +67,7 @@ public class JsonLdServiceImpl implements JsonLdService {"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) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment