Skip to content

Commit

Permalink
fix(deps): suppress sonar warning
Browse files Browse the repository at this point in the history
Sonar claims that the method call leads to IllegalArgumentException. That is the desired behaviour, as the method is intended for invariant checks on arguments
  • Loading branch information
dimasmith committed Nov 11, 2023
1 parent 71b9866 commit 4223c3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/net/anatolich/iris/util/Arguments.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public static <T> T rejectNull(T argument, String message) {
return assertArgument(argument, Objects::nonNull, message);
}

@SuppressWarnings("javabugs:S6416")
public static String rejectEmptyString(String argument, String message) {
return assertArgument(argument, argument != null && !argument.isBlank(), message);
}
Expand Down

0 comments on commit 4223c3f

Please sign in to comment.