Skip to content

Commit

Permalink
Finish fixes after review
Browse files Browse the repository at this point in the history
  • Loading branch information
HlebHalkouski committed Jul 31, 2017
1 parent cef9efe commit 3917b52
Showing 1 changed file with 3 additions and 3 deletions.
@@ -1,5 +1,6 @@
package io.appium.java_client.pagefactory.bys.builder;

import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkNotNull;

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

this.bys = Arrays.asList(bys);
if (this.bys.isEmpty()) {
throw new IllegalArgumentException("By array should not be empty");
}

checkArgument(this.bys.isEmpty(), "By array should not be empty");
}

@Override
Expand Down

0 comments on commit 3917b52

Please sign in to comment.