Skip to content

Commit

Permalink
[grid] Optimizing imports for SessionQueue classes
Browse files Browse the repository at this point in the history
  • Loading branch information
diemol committed Dec 21, 2020
1 parent a522fb7 commit 1ccfb31
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@
import org.openqa.selenium.remote.tracing.Span;
import org.openqa.selenium.remote.tracing.Tracer;

import java.util.UUID;

class AddBackToSessionQueue implements HttpHandler {

private final Tracer tracer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,9 @@
import java.util.Objects;
import java.util.Optional;
import java.util.UUID;
import java.util.logging.Logger;

public abstract class NewSessionQueuer implements HasReadyState, Routable {

private static final Logger LOG = Logger.getLogger(NewSessionQueuer.class.getName());
private final Route routes;
protected final Tracer tracer;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@

package org.openqa.selenium.grid.sessionqueue.httpd;

import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableMap;

import org.openqa.selenium.grid.config.MapConfig;
import org.openqa.selenium.grid.config.MapConfig;

class DefaultNewSessionQueuerConfig extends MapConfig {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,9 @@

import java.time.Duration;
import java.util.Optional;
import java.util.logging.Logger;

public class LocalNewSessionQueuer extends NewSessionQueuer {

private static final Logger LOG = Logger.getLogger(LocalNewSessionQueuer.class.getName());
private final EventBus bus;
public final NewSessionQueue sessionRequests;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
package org.openqa.selenium.grid.sessionqueue.remote;

import static java.net.HttpURLConnection.HTTP_OK;
import static org.openqa.selenium.grid.sessionqueue.NewSessionQueue.*;
import static org.openqa.selenium.grid.sessionqueue.NewSessionQueue.SESSIONREQUEST_ID_HEADER;
import static org.openqa.selenium.grid.sessionqueue.NewSessionQueue.SESSIONREQUEST_TIMESTAMP_HEADER;
import static org.openqa.selenium.remote.http.HttpMethod.DELETE;
import static org.openqa.selenium.remote.http.HttpMethod.GET;
import static org.openqa.selenium.remote.http.HttpMethod.POST;
Expand All @@ -41,7 +42,6 @@
import java.net.MalformedURLException;
import java.net.URI;
import java.util.Optional;
import java.util.UUID;
import java.util.logging.Logger;

public class RemoteNewSessionQueuer extends NewSessionQueuer {
Expand Down

0 comments on commit 1ccfb31

Please sign in to comment.