Skip to content

Commit

Permalink
Correct nullable router signature (#10201)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstepanov authored Dec 5, 2023
1 parent 84c5097 commit e76b829
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion router/src/main/java/io/micronaut/web/router/Router.java
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ default <T, R> Stream<UriRouteMatch<T, R>> find(@NonNull HttpRequest<?> request
* @return A match or null, throws {@link DuplicateRouteException} on multiple routes.
* @since 4.0.0
*/
@NonNull
@Nullable
default <T, R> UriRouteMatch<T, R> findClosest(@NonNull HttpRequest<?> request) throws DuplicateRouteException {
List<UriRouteMatch<T, R>> uriRoutes = findAllClosest(request);
if (uriRoutes.size() > 1) {
Expand Down

0 comments on commit e76b829

Please sign in to comment.