Skip to content

Commit 2f682e1

Browse files
committed
Polishing
1 parent e638fef commit 2f682e1

File tree

3 files changed

+20
-5
lines changed

3 files changed

+20
-5
lines changed

spring-webflux/src/main/java/org/springframework/web/reactive/function/server/RequestPredicate.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2019 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -73,7 +73,7 @@ default RequestPredicate or(RequestPredicate other) {
7373
* Transform the given request into a request used for a nested route. For instance,
7474
* a path-based predicate can return a {@code ServerRequest} with a the path remaining
7575
* after a match.
76-
* <p>The default implementation returns an {@code Optional} wrapping the given path if
76+
* <p>The default implementation returns an {@code Optional} wrapping the given request if
7777
* {@link #test(ServerRequest)} evaluates to {@code true}; or {@link Optional#empty()}
7878
* if it evaluates to {@code false}.
7979
* @param request the request to be nested

spring-webflux/src/main/java/org/springframework/web/reactive/function/server/RequestPredicates.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2019 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -82,7 +82,6 @@ public static RequestPredicate all() {
8282
return request -> true;
8383
}
8484

85-
8685
/**
8786
* Return a {@code RequestPredicate} that matches if the request's
8887
* HTTP method is equal to the given method.

spring-webflux/src/main/java/org/springframework/web/reactive/function/server/package-info.java

+17-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
1+
/*
2+
* Copyright 2002-2019 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
/**
2-
* Provides the types that make up Spring's functional web framework.
18+
* Provides the types that make up Spring's functional web framework for Reactive environments.
319
*/
420
@NonNullApi
521
@NonNullFields

0 commit comments

Comments
 (0)