Skip to content

Commit

Permalink
Merge pull request eugenp#6923 from guilherme-lima/patch-2
Browse files Browse the repository at this point in the history
Updating javadoc
  • Loading branch information
maibin authored May 24, 2019
2 parents abff748 + 6824bfa commit 5569632
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ public static void checkFound(final boolean expression) {

/**
* Check if some value was found, otherwise throw exception.
*
* @param expression
* has value true if found, otherwise false
*
* @param resource
* has value not null to be returned, otherwise throw exception
* @throws MyResourceNotFoundException
* if expression is false, means value not found.
* if resource is null, means value not found.
*/
public static <T> T checkFound(final T resource) {
if (resource == null) {
Expand Down

0 comments on commit 5569632

Please sign in to comment.