Skip to content

Commit

Permalink
fix sonar issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavomcarmo committed Jan 5, 2025
1 parent baad668 commit 1c1329e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public MonitorArUltimas24hRequestor(String url, JsonNode monitorArEstacoesJsonNo
public String request() throws IOException {
String ids = null;
if (monitorArEstacoesJsonNode != null) {
List<String> idsList = new ArrayList<String>(monitorArEstacoesJsonNode.size());
List<String> idsList = new ArrayList<>(monitorArEstacoesJsonNode.size());
Iterator<JsonNode> nodes = monitorArEstacoesJsonNode.elements();
while (nodes.hasNext()) {
idsList.add(nodes.next().get("idEstacao").asText());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public void obterBoletimTest() throws IOException, JSONException {
}

@Test
public void listarMonitorArUltimas24hTest() throws IOException, JSONException {
public void listarMonitorArUltimas24hTest() throws IOException {
String url = String.format("http://localhost:%s/smac/monitorar/ultimas24h", port);
String ultimas24hJson = restTemplate.getForObject(url, String.class);
JsonNode ultimas24hJsonNode = new ObjectMapper().readTree(ultimas24hJson);
Expand Down

0 comments on commit 1c1329e

Please sign in to comment.