[java] Less guava, more java 8
import static java.util.concurrent.TimeUnit.SECONDS;
-import com.google.common.base.Suppliers;
-
import org.openqa.selenium.Capabilities;
import org.openqa.selenium.ImmutableCapabilities;
import org.openqa.selenium.WebDriver;
@@ -75,7 +73,7 @@ public WebDriver get() {
Optional<Supplier<WebDriver>> delegate = createDelegate(desiredCapabilities);
delegate = createForExternalServer(desiredCapabilities, delegate);
- return delegate.orElse(Suppliers.ofInstance(null)).get();
+ return delegate.orElse(()-> null).get();
}
private static Optional<Supplier<WebDriver>> createForExternalServer(
