Skip to content

Commit a42ac27

Browse files
committed
Refactoring: converting a field to a local variable
1 parent 2f4b652 commit a42ac27

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

java/server/src/org/openqa/selenium/remote/server/DefaultSession.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ public class DefaultSession implements Session {
7474
private volatile String base64EncodedImage;
7575
private volatile long lastAccess;
7676
private volatile Thread inUseWithThread = null;
77-
private final BrowserCreator browserCreator;
7877
private TemporaryFilesystem tempFs;
7978

8079
// This method is to avoid constructor escape of partially constructed session object
@@ -102,7 +101,7 @@ private DefaultSession(final DriverFactory factory, TemporaryFilesystem tempFs,
102101
this.knownElements = new KnownElements();
103102
this.sessionId = sessionId;
104103
this.tempFs = tempFs;
105-
browserCreator = new BrowserCreator(factory, capabilities);
104+
final BrowserCreator browserCreator = new BrowserCreator(factory, capabilities);
106105
final FutureTask<EventFiringWebDriver> webDriverFutureTask =
107106
new FutureTask<EventFiringWebDriver>(browserCreator);
108107
executor = new ThreadPoolExecutor(1, 1,

0 commit comments

Comments
 (0)