Skip to content

Commit

Permalink
sonar code smells fix
Browse files Browse the repository at this point in the history
  • Loading branch information
harshadk-sourcefuse committed Aug 21, 2023
1 parent 0cd2a68 commit c5ce4b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,10 @@ public static Predicate getPredicate(
);
}
)
.apply(cb, fieldPath, castValueToDataType(cb, fieldPath, value));
.apply(cb, fieldPath, castValueToDataType(fieldPath, value));
}

private static Object castValueToDataType(
CriteriaBuilder cb,
Expression<?> path,
Object value
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ void testFilterWithJson_ForGreaterThanOperatorWithLocalDateTime() {
User.class
);

assertThat(users).hasSize(0);
assertThat(users).isEmpty();;
}

@Test
Expand Down

0 comments on commit c5ce4b5

Please sign in to comment.