|
20 | 20 | import com.google.common.annotations.VisibleForTesting; |
21 | 21 | import com.google.common.collect.ImmutableSet; |
22 | 22 |
|
23 | | -import org.openqa.selenium.AcceptedW3CCapabilityKeys; |
24 | 23 | import org.openqa.selenium.Beta; |
25 | 24 | import org.openqa.selenium.Capabilities; |
26 | 25 | import org.openqa.selenium.Credentials; |
|
56 | 55 | import java.util.Set; |
57 | 56 | import java.util.TreeMap; |
58 | 57 | import java.util.function.Function; |
59 | | -import java.util.function.Predicate; |
60 | 58 | import java.util.function.Supplier; |
61 | 59 | import java.util.logging.Logger; |
62 | 60 | import java.util.stream.Collectors; |
|
95 | 93 | public class RemoteWebDriverBuilder { |
96 | 94 |
|
97 | 95 | private static final Logger LOG = Logger.getLogger(RemoteWebDriverBuilder.class.getName()); |
98 | | - private static final Predicate<String> ACCEPTED_W3C_PATTERNS = new AcceptedW3CCapabilityKeys(); |
99 | 96 | private static final Set<String> ILLEGAL_METADATA_KEYS = ImmutableSet.of( |
100 | 97 | "alwaysMatch", |
101 | 98 | "capabilities", |
@@ -399,7 +396,7 @@ private WebDriver getRemoteDriver() { |
399 | 396 | .andThen(new ErrorFilter()) |
400 | 397 | .andThen(new DumpHttpExchangeFilter())); |
401 | 398 |
|
402 | | - Either<SessionNotCreatedException, ProtocolHandshake.Result> result = null; |
| 399 | + Either<SessionNotCreatedException, ProtocolHandshake.Result> result; |
403 | 400 | try { |
404 | 401 | result = new ProtocolHandshake().createSession(handler, getPayload()); |
405 | 402 | } catch (IOException e) { |
|
0 commit comments