Added throw keyword to Throwables.propagate

Signed-off-by: Titouan Vervack <titouan.vervack@sigasi.com>
This commit is contained in:
Titouan Vervack 2018-03-30 11:58:41 +02:00
parent 879016d8cb
commit 4f702ddc7a

View file

@ -249,7 +249,7 @@ public class DerivedStateAwareResource extends StorageAwareResource {
operationCanceledManager.propagateAsErrorIfCancelException(e);
}
// Needed for Guava 14-19
Throwables.propagate(e);
throw Throwables.propagate(e);
}
}
} catch (RuntimeException e) {
@ -281,7 +281,7 @@ public class DerivedStateAwareResource extends StorageAwareResource {
throw new IllegalStateException("IDerivedStateComputer#discardDerivedState should not check whether the current operation is canceled.", e);
}
// Needed for Guava 14-19
Throwables.propagate(e);
throw Throwables.propagate(e);
}
}