Polishing (backported from 5.3.x)

This commit is contained in:
Juergen Hoeller
2021-09-02 23:18:36 +02:00
parent eb349be1fc
commit e31d66cd2b
6 changed files with 15 additions and 19 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2019 the original author or authors.
* Copyright 2002-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -71,7 +71,7 @@ public interface RequestPredicate {
/**
* Transform the given request into a request used for a nested route. For instance,
* a path-based predicate can return a {@code ServerRequest} with a the path remaining
* a path-based predicate can return a {@code ServerRequest} with a path remaining
* after a match.
* <p>The default implementation returns an {@code Optional} wrapping the given request if
* {@link #test(ServerRequest)} evaluates to {@code true}; or {@link Optional#empty()}