Skip to content

Commit

Permalink
Fix sonar qube (#475)
Browse files Browse the repository at this point in the history
  • Loading branch information
mestebanez authored Jul 16, 2024
1 parent 0dbe327 commit 1caf519
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,10 @@ protected String makeCall(URI url, Map<String, String> params) {
.header("Content-Type", "application/x-www-form-urlencoded")
.build();

return HttpClient.newHttpClient()
try (HttpClient client = HttpClient.newHttpClient()) {
return client
.send(request, HttpResponse.BodyHandlers.ofString())
.body();
}
}
}

0 comments on commit 1caf519

Please sign in to comment.