Skip to content

Commit

Permalink
[cleanup] Make sure we use diamond operator (#1165)
Browse files Browse the repository at this point in the history
  • Loading branch information
hazendaz authored Mar 4, 2024
1 parent 3234238 commit 6e7ed7d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ void deserialize_returnsTags() {
JsonNode tagNode = buildNode(tagName);

JsonNode rootNode = mock(JsonNode.class);
List<JsonNode> tagNodes = new ArrayList();
List<JsonNode> tagNodes = new ArrayList<>();
tagNodes.add(tagNode);
when(rootNode.iterator()).thenReturn(tagNodes.iterator());

Expand All @@ -50,7 +50,7 @@ void deserialize_OnExcludedTags_returnsTags() {
JsonNode excludedTagNode = buildNode(excludedTagName);

JsonNode rootNode = mock(JsonNode.class);
List<JsonNode> tagNodes = new ArrayList();
List<JsonNode> tagNodes = new ArrayList<>();
tagNodes.add(tagNode);
tagNodes.add(excludedTagNode);
when(rootNode.iterator()).thenReturn(tagNodes.iterator());
Expand Down

0 comments on commit 6e7ed7d

Please sign in to comment.