Skip to content

Commit 1fefaba

Browse files
committed
applied formatting
1 parent 3214588 commit 1fefaba

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

java/src/org/openqa/selenium/internal/Require.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ public static int positive(String argName, Integer number, String message) {
129129
throw new IllegalArgumentException(String.format(MUST_BE_SET, argName));
130130
}
131131
if (number <= 0) {
132-
throw new IllegalArgumentException(Objects.requireNonNullElseGet(message, () -> String.format(MUST_BE_POSITIVE, argName)));
132+
throw new IllegalArgumentException(
133+
Objects.requireNonNullElseGet(message, () -> String.format(MUST_BE_POSITIVE, argName)));
133134
}
134135
return number;
135136
}
@@ -139,7 +140,8 @@ public static double positive(String argName, Double number, String message) {
139140
throw new IllegalArgumentException(String.format(MUST_BE_SET, argName));
140141
}
141142
if (number <= 0) {
142-
throw new IllegalArgumentException(Objects.requireNonNullElseGet(message, () -> String.format(MUST_BE_POSITIVE, argName)));
143+
throw new IllegalArgumentException(
144+
Objects.requireNonNullElseGet(message, () -> String.format(MUST_BE_POSITIVE, argName)));
143145
}
144146
return number;
145147
}

0 commit comments

Comments
 (0)