Skip to content

Commit

Permalink
[java] Fixing more Java 8 compatibility issues
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed May 12, 2020
1 parent 07c8ca6 commit 502fccb
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
import java.util.logging.LogRecord;
import java.util.logging.Logger;

import static java.util.Collections.emptyList;
import static java.util.Collections.emptyMap;
import static org.assertj.core.api.Assertions.assertThat;
import static org.openqa.selenium.remote.http.HttpMethod.GET;

Expand Down Expand Up @@ -66,7 +68,7 @@ public void triggerFailureInTracing() {
rootLogger.addHandler(handler);

try {
Config config = new MapConfig(Map.of());
Config config = new MapConfig(emptyMap());
Tracer tracer = DefaultTestTracer.createTracer();
HttpClient.Factory clientFactory = new NetworkOptions(config).getHttpClientFactory(tracer);

Expand Down Expand Up @@ -109,7 +111,7 @@ public void close() throws SecurityException {
}

public List<String> getMessages(Level level) {
return recordedMessages.getOrDefault(level, List.of());
return recordedMessages.getOrDefault(level, emptyList());
}
}
}

0 comments on commit 502fccb

Please sign in to comment.