Skip to content

Commit

Permalink
Merge c220509 into 851cb0d
Browse files Browse the repository at this point in the history
  • Loading branch information
vinoth959 committed Oct 26, 2022
2 parents 851cb0d + c220509 commit f9bb393
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions java/src/org/openqa/selenium/internal/Require.java
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ public static int positive(String argName, Integer number, String message) {
}

public static double positive(String argName, Double number, String message) {
if (number == null) {
throw new IllegalArgumentException(String.format(MUST_BE_SET, argName));
}
if (number <= 0) {
if (message == null) {
throw new IllegalArgumentException(String.format(MUST_BE_POSITIVE, argName));
Expand Down

0 comments on commit f9bb393

Please sign in to comment.