Skip to content

Commit c7f65f8

Browse files
committed
[java] remove use of guava from FluentWait
1 parent 25bdf6e commit c7f65f8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

java/src/org/openqa/selenium/support/ui/FluentWait.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
package org.openqa.selenium.support.ui;
1919

20-
import com.google.common.base.Throwables;
2120
import java.time.Clock;
2221
import java.time.Duration;
2322
import java.time.Instant;
@@ -244,7 +243,12 @@ private Throwable propagateIfNotIgnored(Throwable e) {
244243
return e;
245244
}
246245
}
247-
Throwables.throwIfUnchecked(e);
246+
if (e instanceof Error) {
247+
throw (Error) e;
248+
}
249+
if (e instanceof RuntimeException) {
250+
throw (RuntimeException) e;
251+
}
248252
throw new RuntimeException(e);
249253
}
250254

0 commit comments

Comments
 (0)