Skip to content

Commit

Permalink
[java] Deleting unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Nov 5, 2019
1 parent 64cd3ae commit e179131
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

import java.util.Collection;
import java.util.Map;
import java.util.Objects;

/**
* Reconstitutes {@link WebElement}s from their JSON representation. Will recursively convert Lists
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ public SpecCompliantExecutor(
}

@Override
public Response execute(Command command) throws IOException {
public Response execute(Command command) {
HttpRequest request;

if (DriverCommand.NEW_SESSION.equals(command.getName())) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,12 @@

package org.openqa.selenium.remote.http.okhttp;

import static java.util.concurrent.TimeUnit.MILLISECONDS;

import com.google.common.base.Strings;

import org.openqa.selenium.remote.http.ClientConfig;
import org.openqa.selenium.remote.http.HttpHandler;
import org.openqa.selenium.remote.http.HttpRequest;
import org.openqa.selenium.remote.http.HttpResponse;
import org.openqa.selenium.remote.http.RemoteCall;

import okhttp3.Credentials;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import io.opentracing.Tracer;
import io.opentracing.propagation.Format;
import io.opentracing.propagation.TextMap;
import io.opentracing.propagation.TextMapAdapter;
import io.opentracing.tag.Tags;
import org.openqa.selenium.remote.http.HttpRequest;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import org.junit.Test;

import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.PrintStream;
import java.io.PrintWriter;

Expand Down Expand Up @@ -162,13 +161,9 @@ public WriteChar(CircularOutputStream stream, char c, int count) {

@Override
public void run() {
try {
for (int i = 0; i < count; i++) {
stream.write(c);
Thread.yield();
}
} catch (IOException e) {
// Ignore; the test will fail later when we discover that not all writes finished.
for (int i = 0; i < count; i++) {
stream.write(c);
Thread.yield();
}
}
}
Expand Down

0 comments on commit e179131

Please sign in to comment.