Created
May 16, 2016 15:33
-
-
Save j4cksw/d5c5bb796e005362bb5c22f531aa4b88 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class UsersResource { | |
| public User findUserById(String userId){ | |
| User result = userDAO.findById(userId); | |
| if( result == null ){ | |
| throw new RuntimeException(); | |
| } | |
| return result; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment