Skip to content

Commit 3917b52

Browse files
committed
Finish fixes after review
1 parent cef9efe commit 3917b52

File tree

1 file changed

+3
-3
lines changed
  • src/main/java/io/appium/java_client/pagefactory/bys/builder

1 file changed

+3
-3
lines changed

src/main/java/io/appium/java_client/pagefactory/bys/builder/ByAll.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package io.appium.java_client.pagefactory.bys.builder;
22

3+
import static com.google.common.base.Preconditions.checkArgument;
34
import static com.google.common.base.Preconditions.checkNotNull;
45

56
import org.openqa.selenium.By;
@@ -35,9 +36,8 @@ public ByAll(By[] bys) {
3536
checkNotNull(bys);
3637

3738
this.bys = Arrays.asList(bys);
38-
if (this.bys.isEmpty()) {
39-
throw new IllegalArgumentException("By array should not be empty");
40-
}
39+
40+
checkArgument(this.bys.isEmpty(), "By array should not be empty");
4141
}
4242

4343
@Override

0 commit comments

Comments
 (0)