Skip to content

Commit

Permalink
getRouter() returns CoontrollerRouter to avoid (ControllerRouter) get…
Browse files Browse the repository at this point in the history
…Application().getRouter() in Controller
  • Loading branch information
decebals committed Aug 18, 2015
1 parent ecabe0b commit fcef5ee
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,12 @@ public ControllerInvokeListenerList getControllerInvokeListeners() {
}

@Override
public Router getRouter() {
public ControllerRouter getRouter() {
if (router == null) {
router = new DefaultControllerRouter();
}

return router;
return (ControllerRouter) router;
}

@Override
Expand Down

0 comments on commit fcef5ee

Please sign in to comment.