removing replySafe and replyUnsafe in favor of the unified reply/tryReply

This commit is contained in:
Viktor Klang 2011-07-20 15:58:28 +02:00
parent 4258abfc9f
commit b23a8fffeb
20 changed files with 54 additions and 74 deletions

View file

@ -76,7 +76,7 @@ public class Pi {
double result = calculatePiFor(work.getStart(), work.getNrOfElements());
// reply with the result
getContext().replyUnsafe(new Result(result));
getContext().reply(new Result(result));
} else throw new IllegalArgumentException("Unknown message [" + message + "]");
}