File tree 1 file changed +3
-4
lines changed
java/server/src/org/openqa/selenium/grid/graphql
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 38
38
39
39
public class Grid {
40
40
41
+ private static final Json JSON = new Json ();
41
42
private final URI uri ;
42
43
private final Supplier <DistributorStatus > distributorStatus ;
43
44
private final Map <String , Object > queueInfoMap ;
44
- private final NewSessionQueuer newSessionQueuer ;
45
45
private final String version ;
46
- private static final Json JSON = new Json ();
47
46
48
47
public Grid (Distributor distributor , NewSessionQueuer newSessionQueuer , URI uri ,
49
48
String version ) {
50
49
Require .nonNull ("Distributor" , distributor );
51
50
this .uri = Require .nonNull ("Grid's public URI" , uri );
52
- this . newSessionQueuer = Require .nonNull ("NewSessionQueuer" , newSessionQueuer );
53
- this .queueInfoMap = newSessionQueuer .getQueueContents ();
51
+ NewSessionQueuer sessionQueuer = Require .nonNull ("NewSessionQueuer" , newSessionQueuer );
52
+ this .queueInfoMap = sessionQueuer .getQueueContents ();
54
53
this .distributorStatus = Suppliers .memoize (distributor ::getStatus );
55
54
this .version = Require .nonNull ("Grid's version" , version );
56
55
}
You can’t perform that action at this time.
0 commit comments