Merge pull request #6923 from guilherme-lima/patch-2

Updating javadoc
This commit is contained in:
maibin 2019-05-24 09:21:10 -07:00 committed by GitHub
commit 5569632c09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -31,11 +31,11 @@ public final class RestPreconditions {
/** /**
* Check if some value was found, otherwise throw exception. * Check if some value was found, otherwise throw exception.
* *
* @param expression * @param resource
* has value true if found, otherwise false * has value not null to be returned, otherwise throw exception
* @throws MyResourceNotFoundException * @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) { public static <T> T checkFound(final T resource) {
if (resource == null) { if (resource == null) {