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 2ed8a6d commit 7b6f81a
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 @@ -275,7 +275,7 @@ private static Query toQuery(final String field, final Object value) {
return null;
}

protected static List<? extends ContentNode> sorted(final List<? extends ContentNode> nodes, final String field, final boolean asc) {
protected static List<ContentNode> sorted(final List<ContentNode> nodes, final String field, final boolean asc) {

var tempNodes = nodes.stream().sorted(
(node1, node2) -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public static int compare(Object o1, Object o2) {
return 0;
}

public static Predicate<? super ContentNode> createExtensionPredicate(final String field, final Object value, final BiPredicate<Object, Object> predicate) {
public static Predicate<ContentNode> createExtensionPredicate(final String field, final Object value, final BiPredicate<Object, Object> predicate) {
return (node) -> {
var node_value = MapUtil.getValue(node.data(), field);

Expand Down

0 comments on commit 7b6f81a

Please sign in to comment.