add @throws annotation to actor life-cycle hooks, see #3188

This commit is contained in:
Roland 2013-04-01 16:35:33 +02:00
parent c77cdeb86b
commit d9d7d45ac2
3 changed files with 10 additions and 1 deletions

View file

@ -33,7 +33,8 @@ public class InitializationDocSpecJava {
// of the actor. To opt-out from stopping the children, we
// have to override preRestart()
@Override
public void preRestart(Throwable reason, Option<Object> message) {
public void preRestart(Throwable reason, Option<Object> message)
throws Exception {
// Keep the call to postStop(), but no stopping of children
postStop();
}