Skip to content

Commit

Permalink
#217 refactor sonar issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Thorsten Marx committed Jul 1, 2024
1 parent 47e80c2 commit 94c8ac4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public MemoryQuery(Collection<ContentNode> nodes, BiFunction<ContentNode, Intege
}

public MemoryQuery(Stream<ContentNode> nodes, ExcerptMapperFunction<T> nodeMapper) {
this(new QueryContext(nodes, nodeMapper, Constants.DEFAULT_CONTENT_TYPE));
this(new QueryContext<>(nodes, nodeMapper, Constants.DEFAULT_CONTENT_TYPE));
}

public MemoryQuery(QueryContext<T> context) {
Expand Down Expand Up @@ -111,7 +111,7 @@ public MemoryQuery<T> whereNotIn(final String field, final List<Object> value) {
}

private MemoryQuery<T> where(final String field, final Queries.Operator operator, final Object value) {
return new MemoryQuery(filtered(context, field, value, operator));
return new MemoryQuery<>(filtered(context, field, value, operator));
}


Expand Down

0 comments on commit 94c8ac4

Please sign in to comment.