We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cef9efe commit 3917b52Copy full SHA for 3917b52
src/main/java/io/appium/java_client/pagefactory/bys/builder/ByAll.java
@@ -1,5 +1,6 @@
1
package io.appium.java_client.pagefactory.bys.builder;
2
3
+import static com.google.common.base.Preconditions.checkArgument;
4
import static com.google.common.base.Preconditions.checkNotNull;
5
6
import org.openqa.selenium.By;
@@ -35,9 +36,8 @@ public ByAll(By[] bys) {
35
36
checkNotNull(bys);
37
38
this.bys = Arrays.asList(bys);
- if (this.bys.isEmpty()) {
39
- throw new IllegalArgumentException("By array should not be empty");
40
- }
+
+ checkArgument(this.bys.isEmpty(), "By array should not be empty");
41
}
42
43
@Override
0 commit comments