Skip to content

Commit 1e0058f

Browse files
committed
[java] Removing unused imports. [skip ci]
1 parent 7618b2b commit 1e0058f

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

java/test/org/openqa/selenium/testing/drivers/WebDriverBuilder.java

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,29 +17,17 @@
1717

1818
package org.openqa.selenium.testing.drivers;
1919

20-
import com.google.common.collect.ImmutableMap;
2120
import org.openqa.selenium.Capabilities;
2221
import org.openqa.selenium.ImmutableCapabilities;
23-
import org.openqa.selenium.Platform;
2422
import org.openqa.selenium.WebDriver;
25-
import org.openqa.selenium.chrome.ChromeOptions;
26-
import org.openqa.selenium.edge.EdgeOptions;
27-
import org.openqa.selenium.firefox.FirefoxOptions;
28-
import org.openqa.selenium.ie.InternetExplorerOptions;
29-
import org.openqa.selenium.opera.OperaOptions;
30-
import org.openqa.selenium.remote.BrowserType;
31-
import org.openqa.selenium.remote.DesiredCapabilities;
32-
import org.openqa.selenium.safari.SafariOptions;
3323

3424
import java.lang.reflect.InvocationTargetException;
3525
import java.lang.reflect.Method;
3626
import java.util.HashSet;
3727
import java.util.LinkedList;
38-
import java.util.Map;
3928
import java.util.Objects;
4029
import java.util.Optional;
4130
import java.util.Set;
42-
import java.util.function.Function;
4331
import java.util.function.Supplier;
4432
import java.util.logging.Level;
4533
import java.util.stream.Stream;
@@ -53,10 +41,6 @@ public class WebDriverBuilder implements Supplier<WebDriver> {
5341
Runtime.getRuntime().addShutdownHook(new Thread(() -> shutdownActions.forEach(Runnable::run)));
5442
}
5543

56-
static void addShutdownAction(Runnable action) {
57-
shutdownActions.add(action);
58-
}
59-
6044
private final Browser toBuild;
6145

6246
public WebDriverBuilder() {
@@ -67,6 +51,10 @@ public WebDriverBuilder(Browser toBuild) {
6751
this.toBuild = Optional.ofNullable(toBuild).orElse(Browser.CHROME);
6852
}
6953

54+
static void addShutdownAction(Runnable action) {
55+
shutdownActions.add(action);
56+
}
57+
7058
@Override
7159
public WebDriver get() {
7260
return get(new ImmutableCapabilities());

0 commit comments

Comments
 (0)