Skip to content

Commit 24b8567

Browse files
committed
Java 1.5 compat, raise generic exception for waitFor
1 parent 1652d67 commit 24b8567

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/main/java/com/browserstack/local/Local.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,18 +183,15 @@ protected LocalProcess runCommand(List<String> command) throws IOException {
183183
final Process process = processBuilder.start();
184184

185185
return new LocalProcess() {
186-
@Override
187186
public InputStream getInputStream() {
188187
return process.getInputStream();
189188
}
190189

191-
@Override
192190
public InputStream getErrorStream() {
193191
return process.getErrorStream();
194192
}
195193

196-
@Override
197-
public int waitFor() throws InterruptedException {
194+
public int waitFor() throws Exception {
198195
return process.waitFor();
199196
}
200197
};
@@ -205,6 +202,6 @@ public interface LocalProcess {
205202

206203
InputStream getErrorStream();
207204

208-
int waitFor() throws InterruptedException;
205+
int waitFor() throws Exception;
209206
}
210207
}

0 commit comments

Comments
 (0)