Skip to content

Commit

Permalink
Missed a NonNull annotation on verifyExistenceAndReturn
Browse files Browse the repository at this point in the history
Add missing NonNull annotation to one of the 
verifyExistenceAndReturn methods in KiwiResources.
  • Loading branch information
sleberknight authored Aug 10, 2024
1 parent 9edc5d8 commit bffa501
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/org/kiwiproject/jaxrs/KiwiResources.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ public static <T> void verifyExistence(T resourceEntity, Class<T> entityType, Ob
* @return the entity, if it is not null
* @throws JaxrsNotFoundException if the entity is null
*/
@NonNull
public static <T> T verifyExistenceAndReturn(T resourceEntity, Class<T> entityType, Object identifier) {
return verifyExistence(Optional.ofNullable(resourceEntity), entityType, identifier);
}
Expand Down

0 comments on commit bffa501

Please sign in to comment.