diff --git a/java/src/org/openqa/selenium/remote/http/Contents.java b/java/src/org/openqa/selenium/remote/http/Contents.java index cbc1b06cedb3c..2944d8178d825 100644 --- a/java/src/org/openqa/selenium/remote/http/Contents.java +++ b/java/src/org/openqa/selenium/remote/http/Contents.java @@ -29,11 +29,7 @@ import java.io.Reader; import java.io.UncheckedIOException; import java.lang.reflect.Type; -import java.nio.CharBuffer; -import java.nio.channels.Channels; -import java.nio.channels.WritableByteChannel; import java.nio.charset.Charset; -import java.nio.charset.CharsetEncoder; import java.nio.file.Files; import java.util.Base64; import org.openqa.selenium.internal.Require; diff --git a/java/src/org/openqa/selenium/remote/http/jdk/JdkHttpMessages.java b/java/src/org/openqa/selenium/remote/http/jdk/JdkHttpMessages.java index 5ac48963e962e..ccf41787ee14c 100644 --- a/java/src/org/openqa/selenium/remote/http/jdk/JdkHttpMessages.java +++ b/java/src/org/openqa/selenium/remote/http/jdk/JdkHttpMessages.java @@ -30,7 +30,6 @@ import org.openqa.selenium.remote.http.AddSeleniumUserAgent; import org.openqa.selenium.remote.http.ClientConfig; import org.openqa.selenium.remote.http.Contents; -import org.openqa.selenium.remote.http.HttpHeader; import org.openqa.selenium.remote.http.HttpMethod; import org.openqa.selenium.remote.http.HttpRequest; import org.openqa.selenium.remote.http.HttpResponse; diff --git a/java/test/org/openqa/selenium/grid/node/NodeTest.java b/java/test/org/openqa/selenium/grid/node/NodeTest.java index e352d8a226a12..9f6d4c50b404a 100644 --- a/java/test/org/openqa/selenium/grid/node/NodeTest.java +++ b/java/test/org/openqa/selenium/grid/node/NodeTest.java @@ -31,7 +31,6 @@ import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; -import java.io.ByteArrayInputStream; import java.io.File; import java.io.IOException; import java.io.UncheckedIOException; diff --git a/java/test/org/openqa/selenium/remote/NewSessionPayloadTest.java b/java/test/org/openqa/selenium/remote/NewSessionPayloadTest.java index e793dac9f95eb..866dda8916f11 100644 --- a/java/test/org/openqa/selenium/remote/NewSessionPayloadTest.java +++ b/java/test/org/openqa/selenium/remote/NewSessionPayloadTest.java @@ -31,7 +31,6 @@ import com.google.common.collect.ImmutableMap; import java.io.IOException; -import java.io.StringReader; import java.nio.charset.StandardCharsets; import java.util.HashMap; import java.util.List; @@ -58,7 +57,8 @@ void shouldIndicateDownstreamW3cDialect() { } String json = new Json().toJson(caps); - try (NewSessionPayload payload = NewSessionPayload.create(Contents.string(json, StandardCharsets.UTF_8))) { + try (NewSessionPayload payload = + NewSessionPayload.create(Contents.string(json, StandardCharsets.UTF_8))) { assertEquals(singleton(Dialect.W3C), payload.getDownstreamDialects()); } } @@ -264,7 +264,8 @@ private List create(Map source) { } String json = new Json().toJson(source); - try (NewSessionPayload payload = NewSessionPayload.create(Contents.string(json, StandardCharsets.UTF_8))) { + try (NewSessionPayload payload = + NewSessionPayload.create(Contents.string(json, StandardCharsets.UTF_8))) { fromDisk = payload.stream().collect(toList()); }