File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
java/src/org/openqa/selenium/grid/distributor Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 17
17
18
18
package org .openqa .selenium .grid .distributor ;
19
19
20
+ import static org .openqa .selenium .grid .data .Availability .DOWN ;
21
+ import static org .openqa .selenium .grid .data .Availability .DRAINING ;
22
+ import static org .openqa .selenium .grid .data .Availability .UP ;
23
+
20
24
import com .google .common .collect .ImmutableSet ;
25
+
21
26
import org .openqa .selenium .events .EventBus ;
22
27
import org .openqa .selenium .grid .config .Config ;
23
28
import org .openqa .selenium .grid .data .Availability ;
49
54
import java .util .concurrent .locks .ReentrantReadWriteLock ;
50
55
import java .util .logging .Logger ;
51
56
52
- import static org .openqa .selenium .grid .data .Availability .DOWN ;
53
- import static org .openqa .selenium .grid .data .Availability .DRAINING ;
54
- import static org .openqa .selenium .grid .data .Availability .UP ;
55
-
56
57
public class GridModel {
57
58
58
59
private static final SessionId RESERVED = new SessionId ("reserved" );
@@ -430,9 +431,9 @@ public void setSession(SlotId slotId, Session session) {
430
431
return ;
431
432
}
432
433
433
- Session current = maybeSession ;
434
- if (! RESERVED . equals ( current . getId ())) {
435
- LOG . warning ( "Grid model and reality have diverged. Slot has session and is not reserved. " + slotId );
434
+ if (! RESERVED . equals ( maybeSession . getId ())) {
435
+ LOG . warning (
436
+ "Grid model and reality have diverged. Slot has session and is not reserved. " + slotId );
436
437
return ;
437
438
}
438
439
You can’t perform that action at this time.
0 commit comments