return controller == null ? null : controller.action(actionKey);
}
- private void sendErrors(Response response, int status, Errors errors) {
+ private static void sendErrors(Response response, int status, Errors errors) {
Response.Stream stream = response.stream();
if (stream instanceof ServletResponse.ServletStream) {
((ServletResponse.ServletStream) stream).reset();
json.endObject();
} catch (Exception e) {
// Do not hide the potential exception raised in the try block.
- Throwables.propagate(e);
+ throw Throwables.propagate(e);
}
}