diff --git a/java/src/org/openqa/selenium/grid/node/docker/DockerSessionFactory.java b/java/src/org/openqa/selenium/grid/node/docker/DockerSessionFactory.java index bd7292166248b..3cc1d4ab68911 100644 --- a/java/src/org/openqa/selenium/grid/node/docker/DockerSessionFactory.java +++ b/java/src/org/openqa/selenium/grid/node/docker/DockerSessionFactory.java @@ -455,8 +455,7 @@ private void saveSessionCapabilities(Capabilities sessionRequestCapabilities, St try { Files.createDirectories(Paths.get(path)); Files.writeString( - Paths.get(path, "sessionCapabilities.json"), - capsToJson, Charset.defaultCharset()); + Paths.get(path, "sessionCapabilities.json"), capsToJson, Charset.defaultCharset()); } catch (IOException e) { LOG.log(Level.WARNING, "Failed to save session capabilities", e); } diff --git a/java/test/org/openqa/selenium/UploadTest.java b/java/test/org/openqa/selenium/UploadTest.java index 264324c9bf04a..308ca7a4d1e96 100644 --- a/java/test/org/openqa/selenium/UploadTest.java +++ b/java/test/org/openqa/selenium/UploadTest.java @@ -29,7 +29,6 @@ import java.io.File; import java.io.IOException; import java.io.UncheckedIOException; -import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.util.Arrays; import java.util.List; diff --git a/java/test/org/openqa/selenium/environment/webserver/AppServerTestBase.java b/java/test/org/openqa/selenium/environment/webserver/AppServerTestBase.java index 0e2d6a0c35bbd..b174fa2b95700 100644 --- a/java/test/org/openqa/selenium/environment/webserver/AppServerTestBase.java +++ b/java/test/org/openqa/selenium/environment/webserver/AppServerTestBase.java @@ -17,7 +17,6 @@ package org.openqa.selenium.environment.webserver; -import static java.nio.charset.StandardCharsets.UTF_8; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.openqa.selenium.remote.http.Contents.string; diff --git a/java/test/org/openqa/selenium/grid/node/NodeTest.java b/java/test/org/openqa/selenium/grid/node/NodeTest.java index 107d94de72f9e..4ce9e7e019ff6 100644 --- a/java/test/org/openqa/selenium/grid/node/NodeTest.java +++ b/java/test/org/openqa/selenium/grid/node/NodeTest.java @@ -36,7 +36,6 @@ import java.io.UncheckedIOException; import java.net.URI; import java.net.URISyntaxException; -import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.file.Path; import java.time.Clock; diff --git a/java/test/org/openqa/selenium/grid/web/ResourceHandlerTest.java b/java/test/org/openqa/selenium/grid/web/ResourceHandlerTest.java index 4e9594745f4a1..8c76ac80cf4dc 100644 --- a/java/test/org/openqa/selenium/grid/web/ResourceHandlerTest.java +++ b/java/test/org/openqa/selenium/grid/web/ResourceHandlerTest.java @@ -19,7 +19,6 @@ import static java.net.HttpURLConnection.HTTP_MOVED_TEMP; import static java.net.HttpURLConnection.HTTP_OK; -import static java.nio.charset.StandardCharsets.UTF_8; import static org.assertj.core.api.Assertions.assertThat; import static org.openqa.selenium.remote.http.HttpMethod.GET; diff --git a/java/test/org/openqa/selenium/testing/TestUtilities.java b/java/test/org/openqa/selenium/testing/TestUtilities.java index 8f13291fae6d3..21abfa50b8e77 100644 --- a/java/test/org/openqa/selenium/testing/TestUtilities.java +++ b/java/test/org/openqa/selenium/testing/TestUtilities.java @@ -20,7 +20,6 @@ import java.io.File; import java.io.IOException; import java.io.UncheckedIOException; -import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.util.Map; import java.util.regex.Matcher;