Skip to content

Commit 8ba6f93

Browse files
committed
Whitespace formatting, no logic change
1 parent 46d7920 commit 8ba6f93

File tree

2 files changed

+18
-17
lines changed

2 files changed

+18
-17
lines changed

java/client/src/org/openqa/selenium/os/CommandLine.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,11 @@ public void waitFor() {
125125
}
126126

127127
public void waitFor(long timeout) {
128-
try {
129-
process.waitFor(timeout);
130-
} catch (InterruptedException e) {
131-
throw new WebDriverException(e);
132-
}
128+
try {
129+
process.waitFor(timeout);
130+
} catch (InterruptedException e) {
131+
throw new WebDriverException(e);
132+
}
133133
}
134134

135135
public boolean isSuccessful() {

java/client/src/org/openqa/selenium/os/UnixProcess.java

+13-12
Original file line numberDiff line numberDiff line change
@@ -133,20 +133,21 @@ public int destroy() {
133133
public void waitFor() throws InterruptedException {
134134
handler.waitFor();
135135
}
136-
136+
137137
public void waitFor(long timeout) throws InterruptedException {
138-
long until = System.currentTimeMillis() + timeout;
139-
boolean timedOut = true;
140-
while (System.currentTimeMillis() < until) {
141-
if(handler.hasResult()){
142-
timedOut = false;
143-
break;
144-
}
145-
Thread.sleep(50);
138+
long until = System.currentTimeMillis() + timeout;
139+
boolean timedOut = true;
140+
while (System.currentTimeMillis() < until) {
141+
if (handler.hasResult()) {
142+
timedOut = false;
143+
break;
146144
}
147-
if(timedOut){
148-
throw new InterruptedException(String.format("Process timed out after waiting for %d ms.",timeout) );
149-
}
145+
Thread.sleep(50);
146+
}
147+
if (timedOut) {
148+
throw new InterruptedException(
149+
String.format("Process timed out after waiting for %d ms.", timeout));
150+
}
150151
}
151152

152153
public boolean isRunning() {

0 commit comments

Comments
 (0)