mirror of
https://github.com/google/nomulus
synced 2026-01-07 05:56:49 +00:00
Bring open source build closer to passing
This commit is contained in:
@@ -15,7 +15,6 @@
|
||||
package google.registry.util;
|
||||
|
||||
import static com.google.appengine.api.search.checkers.Preconditions.checkArgument;
|
||||
import static com.google.common.base.Throwables.throwIfUnchecked;
|
||||
import static com.google.common.collect.Iterables.any;
|
||||
import static com.google.common.math.IntMath.pow;
|
||||
import static google.registry.util.PredicateUtils.supertypeOf;
|
||||
@@ -108,4 +107,14 @@ public class Retrier implements Serializable {
|
||||
return any(retryables, supertypeOf(e.getClass()));
|
||||
}});
|
||||
}
|
||||
|
||||
// TODO(user): Replace with Throwables.throwIfUnchecked
|
||||
private static void throwIfUnchecked(Throwable throwable) {
|
||||
if (throwable instanceof RuntimeException) {
|
||||
throw (RuntimeException) throwable;
|
||||
}
|
||||
if (throwable instanceof Error) {
|
||||
throw (Error) throwable;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user