Skip to content

Commit

Permalink
[java] removed usage of FileBackedOutputStream in the client
Browse files Browse the repository at this point in the history
  • Loading branch information
joerg1985 committed Feb 18, 2024
1 parent ba6142e commit a3b8dfd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
4 changes: 0 additions & 4 deletions java/src/org/openqa/selenium/remote/http/Contents.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion java/test/org/openqa/selenium/grid/node/NodeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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());
}
}
Expand Down Expand Up @@ -264,7 +264,8 @@ private List<Capabilities> create(Map<String, ?> 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());
}

Expand Down

0 comments on commit a3b8dfd

Please sign in to comment.