Skip to content

Commit 02a0df9

Browse files
committed
Clean up import statements. No logical changes.
Done by running "optimize imports" in IJ CE.
1 parent d33222c commit 02a0df9

File tree

180 files changed

+299
-451
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

180 files changed

+299
-451
lines changed

java/client/src/com/thoughtworks/selenium/condition/JUnitConditionRunner.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717

1818
package com.thoughtworks.selenium.condition;
1919

20-
import com.thoughtworks.selenium.Selenium;
21-
2220
import static org.junit.Assert.fail;
2321

22+
import com.thoughtworks.selenium.Selenium;
23+
2424
/**
2525
* This class throws an {@link junit.framework.AssertionFailedError} when the condition is not met.
2626
*/

java/client/src/com/thoughtworks/selenium/webdriven/CompoundMutator.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,6 @@
2020

2121
import com.google.common.collect.Lists;
2222

23-
import com.thoughtworks.selenium.webdriven.FunctionDeclaration;
24-
import com.thoughtworks.selenium.webdriven.JavascriptLibrary;
25-
import com.thoughtworks.selenium.webdriven.ScriptMutator;
26-
import com.thoughtworks.selenium.webdriven.SeleniumMutator;
27-
import com.thoughtworks.selenium.webdriven.VariableDeclaration;
28-
2923
import java.util.List;
3024

3125
/**

java/client/src/com/thoughtworks/selenium/webdriven/FunctionDeclaration.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818

1919
package com.thoughtworks.selenium.webdriven;
2020

21-
import com.thoughtworks.selenium.webdriven.ScriptMutator;
22-
2321
import java.util.regex.Pattern;
2422

2523
/**

java/client/src/com/thoughtworks/selenium/webdriven/SeleniumMutator.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818

1919
package com.thoughtworks.selenium.webdriven;
2020

21-
import com.thoughtworks.selenium.webdriven.ScriptMutator;
22-
2321
import java.util.regex.Pattern;
2422

2523
/**

java/client/src/com/thoughtworks/selenium/webdriven/VariableDeclaration.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818

1919
package com.thoughtworks.selenium.webdriven;
2020

21-
import com.thoughtworks.selenium.webdriven.ScriptMutator;
22-
2321
import java.util.regex.Pattern;
2422

2523
/**

java/client/src/com/thoughtworks/selenium/webdriven/commands/SetCursorPosition.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323

2424
import org.openqa.selenium.JavascriptExecutor;
2525
import org.openqa.selenium.WebDriver;
26-
import org.openqa.selenium.WebDriverException;
2726
import org.openqa.selenium.WebElement;
2827

2928
public class SetCursorPosition extends SeleneseCommand<Void> {

java/client/src/org/openqa/selenium/WebDriver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
package org.openqa.selenium;
1919

20-
import org.openqa.selenium.logging.Logs;
2120
import org.openqa.selenium.logging.LoggingPreferences;
21+
import org.openqa.selenium.logging.Logs;
2222

2323
import java.net.URL;
2424
import java.util.List;

java/client/src/org/openqa/selenium/chrome/ChromeDriver.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
package org.openqa.selenium.chrome;
2020

2121
import com.google.common.collect.ImmutableMap;
22+
2223
import org.openqa.selenium.Capabilities;
2324
import org.openqa.selenium.WebDriver;
2425
import org.openqa.selenium.WebDriverException;

java/client/src/org/openqa/selenium/chrome/ChromeDriverCommandExecutor.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
import org.openqa.selenium.remote.CommandInfo;
2323
import org.openqa.selenium.remote.http.HttpMethod;
24-
2524
import org.openqa.selenium.remote.service.DriverCommandExecutor;
2625
import org.openqa.selenium.remote.service.DriverService;
2726

java/client/src/org/openqa/selenium/edge/EdgeDriver.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818

1919
import org.openqa.selenium.Capabilities;
2020
import org.openqa.selenium.WebDriver;
21-
import org.openqa.selenium.edge.EdgeDriverService;
22-
import org.openqa.selenium.edge.EdgeOptions;
2321
import org.openqa.selenium.remote.RemoteWebDriver;
2422
import org.openqa.selenium.remote.service.DriverCommandExecutor;
2523

java/client/src/org/openqa/selenium/edge/EdgeOptions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919

2020
import static com.google.common.base.Preconditions.checkNotNull;
2121

22-
import java.io.IOException;
23-
2422
import com.google.gson.JsonObject;
2523

2624
import org.openqa.selenium.remote.CapabilityType;
2725
import org.openqa.selenium.remote.DesiredCapabilities;
2826

27+
import java.io.IOException;
28+
2929

3030
/**
3131
* Class to manage options specific to {@link EdgeDriver}.

java/client/src/org/openqa/selenium/firefox/FirefoxBinary.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@
3333
import org.openqa.selenium.Platform;
3434
import org.openqa.selenium.WebDriverException;
3535
import org.openqa.selenium.firefox.internal.Executable;
36-
import org.openqa.selenium.io.CircularOutputStream;
3736
import org.openqa.selenium.io.FileHandler;
38-
import org.openqa.selenium.io.MultiOutputStream;
3937
import org.openqa.selenium.os.CommandLine;
4038
import org.openqa.selenium.os.ExecutableFinder;
4139

java/client/src/org/openqa/selenium/firefox/internal/FileExtension.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import org.openqa.selenium.WebDriverException;
2121
import org.openqa.selenium.io.FileHandler;
2222
import org.openqa.selenium.io.TemporaryFilesystem;
23-
2423
import org.openqa.selenium.io.Zip;
2524
import org.w3c.dom.Document;
2625
import org.w3c.dom.Node;

java/client/src/org/openqa/selenium/firefox/internal/ProfilesIni.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717

1818
package org.openqa.selenium.firefox.internal;
1919

20+
import static org.openqa.selenium.Platform.MAC;
21+
import static org.openqa.selenium.Platform.WINDOWS;
22+
2023
import com.google.common.collect.Maps;
2124

2225
import org.openqa.selenium.Platform;
@@ -32,9 +35,6 @@
3235
import java.text.MessageFormat;
3336
import java.util.Map;
3437

35-
import static org.openqa.selenium.Platform.WINDOWS;
36-
import static org.openqa.selenium.Platform.MAC;
37-
3838
public class ProfilesIni {
3939
private Map<String, File> profiles = Maps.newHashMap();
4040

java/client/src/org/openqa/selenium/internal/HasIdentity.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717

1818
package org.openqa.selenium.internal;
1919

20-
import org.openqa.selenium.interactions.internal.Coordinates;
21-
2220
public interface HasIdentity {
2321
String getId();
2422
}

java/client/src/org/openqa/selenium/io/FileHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222

2323
import java.io.File;
2424
import java.io.FileOutputStream;
25-
import java.io.OutputStream;
2625
import java.io.IOException;
2726
import java.io.InputStream;
27+
import java.io.OutputStream;
2828
import java.nio.file.Files;
2929
import java.util.Arrays;
3030
import java.util.List;

java/client/src/org/openqa/selenium/lift/BUCK

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ java_library(name = 'lift',
22
srcs = glob(['**/*.java']),
33
deps = [
44
'//java/client/src/org/openqa/selenium:selenium',
5-
'//java/client/src/org/openqa/selenium/support/ui:wait',
65
'//java/client/src/org/openqa/selenium/support/ui:clock',
6+
'//java/client/src/org/openqa/selenium/support/ui:wait',
77
'//third_party/java/guava:guava',
88
'//third_party/java/hamcrest:hamcrest',
99
'//third_party/java/junit:junit',

java/client/src/org/openqa/selenium/lift/Finders.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,12 @@
1818
// Generated source.
1919
package org.openqa.selenium.lift;
2020

21+
import org.hamcrest.Description;
2122
import org.openqa.selenium.WebDriver;
2223
import org.openqa.selenium.WebElement;
2324
import org.openqa.selenium.lift.find.BaseFinder;
2425
import org.openqa.selenium.lift.find.Finder;
2526

26-
import org.hamcrest.Description;
27-
2827
import java.util.Collection;
2928
import java.util.Collections;
3029
import java.util.Iterator;

java/client/src/org/openqa/selenium/lift/HamcrestWebDriverTestCase.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020
import static org.openqa.selenium.lift.match.NumericalMatchers.exactly;
2121
import static org.openqa.selenium.lift.match.SelectionMatcher.selection;
2222

23+
import junit.framework.TestCase;
24+
25+
import org.hamcrest.Matcher;
2326
import org.openqa.selenium.WebDriver;
2427
import org.openqa.selenium.WebElement;
2528
import org.openqa.selenium.lift.find.Finder;
2629

27-
import junit.framework.TestCase;
28-
import org.hamcrest.Matcher;
29-
3030
/**
3131
* Base class for tests using the LiFT style API to driver WebDriver.
3232
*/

java/client/src/org/openqa/selenium/lift/TestContext.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,11 @@
1717

1818
package org.openqa.selenium.lift;
1919

20+
import org.hamcrest.Matcher;
2021
import org.openqa.selenium.WebDriver;
2122
import org.openqa.selenium.WebElement;
2223
import org.openqa.selenium.lift.find.Finder;
2324

24-
import org.hamcrest.Matcher;
25-
2625
/**
2726
* Interface for objects that provide a context (maintaining any state) for web tests.
2827
*/

java/client/src/org/openqa/selenium/lift/WebDriverTestContext.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919

2020
import static org.openqa.selenium.lift.match.NumericalMatchers.atLeast;
2121

22+
import org.hamcrest.Description;
23+
import org.hamcrest.Matcher;
24+
import org.hamcrest.StringDescription;
2225
import org.openqa.selenium.WebDriver;
2326
import org.openqa.selenium.WebElement;
2427
import org.openqa.selenium.lift.find.Finder;
@@ -30,10 +33,6 @@
3033
import org.openqa.selenium.support.ui.Wait;
3134
import org.openqa.selenium.support.ui.WebDriverWait;
3235

33-
import org.hamcrest.Description;
34-
import org.hamcrest.Matcher;
35-
import org.hamcrest.StringDescription;
36-
3736
import java.util.Collection;
3837
import java.util.concurrent.TimeUnit;
3938

java/client/src/org/openqa/selenium/lift/find/DivFinder.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@
1717

1818
package org.openqa.selenium.lift.find;
1919

20-
import static org.openqa.selenium.lift.match.AttributeMatcher.attribute;
21-
2220
import static org.hamcrest.Matchers.equalTo;
21+
import static org.openqa.selenium.lift.match.AttributeMatcher.attribute;
2322

2423
import org.hamcrest.Factory;
2524

java/client/src/org/openqa/selenium/lift/find/HtmlTagFinder.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,12 @@
1717

1818
package org.openqa.selenium.lift.find;
1919

20+
import org.hamcrest.Description;
21+
import org.hamcrest.Matcher;
2022
import org.openqa.selenium.By;
2123
import org.openqa.selenium.WebDriver;
2224
import org.openqa.selenium.WebElement;
2325

24-
import org.hamcrest.Description;
25-
import org.hamcrest.Matcher;
26-
2726
import java.util.Collection;
2827

2928
/**

java/client/src/org/openqa/selenium/lift/find/InputFinder.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,10 @@
1717

1818
package org.openqa.selenium.lift.find;
1919

20+
import static org.hamcrest.Matchers.equalTo;
2021
import static org.openqa.selenium.lift.Matchers.attribute;
2122
import static org.openqa.selenium.lift.Matchers.value;
2223

23-
import static org.hamcrest.Matchers.equalTo;
24-
2524
import org.hamcrest.Factory;
2625

2726
/**

java/client/src/org/openqa/selenium/lift/find/LinkFinder.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@
2121
* A {@link Finder} for HTML anchor tags, "links".
2222
*/
2323

24-
import static org.openqa.selenium.lift.match.TextMatcher.text;
25-
2624
import static org.hamcrest.Matchers.equalTo;
25+
import static org.openqa.selenium.lift.match.TextMatcher.text;
2726

2827
import org.hamcrest.Factory;
2928

java/client/src/org/openqa/selenium/lift/find/PageTitleFinder.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@
2020
*/
2121
package org.openqa.selenium.lift.find;
2222

23-
import static org.openqa.selenium.lift.match.TextMatcher.text;
24-
2523
import static org.hamcrest.Matchers.equalTo;
24+
import static org.openqa.selenium.lift.match.TextMatcher.text;
2625

2726
import org.hamcrest.Factory;
2827

java/client/src/org/openqa/selenium/lift/find/XPathFinder.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,11 @@
1616
// under the License.
1717
package org.openqa.selenium.lift.find;
1818

19+
import org.hamcrest.Description;
1920
import org.openqa.selenium.By;
2021
import org.openqa.selenium.WebDriver;
2122
import org.openqa.selenium.WebElement;
2223

23-
import org.hamcrest.Description;
24-
2524
import java.util.Collection;
2625

2726
/**

java/client/src/org/openqa/selenium/lift/match/AttributeMatcher.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,11 @@
1717

1818
package org.openqa.selenium.lift.match;
1919

20-
import org.openqa.selenium.WebElement;
21-
2220
import org.hamcrest.Description;
2321
import org.hamcrest.Factory;
2422
import org.hamcrest.Matcher;
2523
import org.hamcrest.TypeSafeMatcher;
24+
import org.openqa.selenium.WebElement;
2625

2726
/**
2827
* hamcrest matcher for attributes of {@link WebElement}s.

java/client/src/org/openqa/selenium/lift/match/SelectionMatcher.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,11 @@
1818

1919
package org.openqa.selenium.lift.match;
2020

21-
import org.openqa.selenium.WebElement;
22-
2321
import org.hamcrest.Description;
2422
import org.hamcrest.Factory;
2523
import org.hamcrest.Matcher;
2624
import org.hamcrest.TypeSafeMatcher;
25+
import org.openqa.selenium.WebElement;
2726

2827
/**
2928
* Matcher to match a selected element (e.g. a radio button).

java/client/src/org/openqa/selenium/lift/match/TextMatcher.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,11 @@
1717

1818
package org.openqa.selenium.lift.match;
1919

20-
import org.openqa.selenium.WebElement;
21-
2220
import org.hamcrest.Description;
2321
import org.hamcrest.Factory;
2422
import org.hamcrest.Matcher;
2523
import org.hamcrest.TypeSafeMatcher;
24+
import org.openqa.selenium.WebElement;
2625

2726
/**
2827
* {@link Matcher} for matching text content within {@link WebElement}s.

java/client/src/org/openqa/selenium/lift/match/ValueMatcher.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,11 @@
1818

1919
package org.openqa.selenium.lift.match;
2020

21-
import org.openqa.selenium.WebElement;
22-
2321
import org.hamcrest.Description;
2422
import org.hamcrest.Factory;
2523
import org.hamcrest.Matcher;
2624
import org.hamcrest.TypeSafeMatcher;
25+
import org.openqa.selenium.WebElement;
2726

2827
/**
2928
* Matches the value of an element, for example an input field.

java/client/src/org/openqa/selenium/logging/BUCK

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ java_library(name = 'logging',
2121
deps = [
2222
':api',
2323
'//java/client/src/org/openqa/selenium:beta',
24-
'//third_party/java/guava:guava',
2524
'//third_party/java/gson:gson',
25+
'//third_party/java/guava:guava',
2626
],
2727
visibility = [
2828
'//java/client/src/org/openqa/selenium:selenium'

0 commit comments

Comments
 (0)