Skip to content

Commit 87aaf50

Browse files
committed
Polishing
1 parent 4b01370 commit 87aaf50

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

spring-core/src/main/java/org/springframework/core/ReactiveAdapterRegistry.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
/**
4242
* A registry of adapters to adapt Reactive Streams {@link Publisher} to/from
4343
* various async/reactive types such as {@code CompletableFuture}, RxJava
44-
* {@code Observable}, and others.
44+
* {@code Flowable}, and others.
4545
*
4646
* <p>By default, depending on classpath availability, adapters are registered
4747
* for Reactor, RxJava 3, {@link CompletableFuture}, {@code Flow.Publisher},

spring-web/src/main/java/org/springframework/web/bind/MethodArgumentNotValidException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ public final MethodParameter getParameter() {
5656
@Override
5757
public String getMessage() {
5858
StringBuilder sb = new StringBuilder("Validation failed for argument [")
59-
.append(this.parameter.getParameterIndex()).append("] in ")
60-
.append(this.parameter.getExecutable().toGenericString());
59+
.append(this.parameter.getParameterIndex()).append("] in ")
60+
.append(this.parameter.getExecutable().toGenericString());
6161
BindingResult bindingResult = getBindingResult();
6262
if (bindingResult.getErrorCount() > 1) {
6363
sb.append(" with ").append(bindingResult.getErrorCount()).append(" errors");

spring-webflux/src/main/java/org/springframework/web/reactive/result/method/AbstractHandlerMethodMapping.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,10 @@ public void unregisterMapping(T mapping) {
157157
*/
158158
@Override
159159
public void afterPropertiesSet() {
160-
161160
initHandlerMethods();
162161

163-
// Total includes detected mappings + explicit registrations via registerMapping..
164-
int total = this.getHandlerMethods().size();
165-
162+
// Total includes detected mappings + explicit registrations via registerMapping
163+
int total = getHandlerMethods().size();
166164
if ((logger.isTraceEnabled() && total == 0) || (logger.isDebugEnabled() && total > 0) ) {
167165
logger.debug(total + " mappings in " + formatMappingName());
168166
}

spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/support/DefaultHandlerExceptionResolver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ protected ModelAndView handleNoHandlerFoundException(NoHandlerFoundException ex,
520520
/**
521521
* Handle the case where an async request timed out.
522522
* <p>The default implementation sends an HTTP 503 error.
523-
* @param ex the {@link AsyncRequestTimeoutException }to be handled
523+
* @param ex the {@link AsyncRequestTimeoutException} to be handled
524524
* @param request current HTTP request
525525
* @param response current HTTP response
526526
* @param handler the executed handler, or {@code null} if none chosen

0 commit comments

Comments
 (0)