Skip to content

Commit f8dc852

Browse files
committed
Merge branch '5.1.x'
2 parents 87dba5a + 1f47326 commit f8dc852

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

spring-core/src/main/java/org/springframework/core/log/LogDelegateFactory.java

Lines changed: 8 additions & 8 deletions
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.
@@ -44,15 +44,15 @@ private LogDelegateFactory() {
4444
/**
4545
* Create a composite logger that delegates to a primary or falls back on a
4646
* secondary logger if logging for the primary logger is not enabled.
47-
* <p>This may be used for fallback logging from lower level packages that
48-
* logically should log together with some higher level package but the two
47+
* <p>This may be used for fallback logging from lower-level packages that
48+
* logically should log together with some higher-level package but the two
4949
* don't happen to share a suitable parent package (e.g. logging for the web
50-
* and lower level http and codec packages). For such cases the primary,
51-
* class-based logger can be wrapped with a shared fallback logger.
50+
* and lower-level http and codec packages). For such cases the primary
51+
* (class-based) logger can be wrapped with a shared fallback logger.
5252
* @param primaryLogger primary logger to try first
5353
* @param secondaryLogger secondary logger
54-
* @param tertiaryLoggers optionally, more fallback loggers
55-
* @return the resulting logger to use
54+
* @param tertiaryLoggers optional vararg of further fallback loggers
55+
* @return the resulting composite logger for the related categories
5656
*/
5757
public static Log getCompositeLog(Log primaryLogger, Log secondaryLogger, Log... tertiaryLoggers) {
5858
List<Log> loggers = new ArrayList<>(2 + tertiaryLoggers.length);
@@ -68,7 +68,7 @@ public static Log getCompositeLog(Log primaryLogger, Log secondaryLogger, Log...
6868
* or unnecessary to see at any log level by default under the normal package
6969
* based log hierarchy.
7070
* @param clazz the class for which to create a logger
71-
* @return the created logger
71+
* @return a logger for the hidden category ("_" + fully-qualified class name)
7272
*/
7373
public static Log getHiddenLog(Class<?> clazz) {
7474
return LogFactory.getLog("_" + clazz.getName());

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@
5555
/**
5656
* Package-private class to assist {@link RequestMappingHandlerAdapter} with
5757
* resolving, initializing, and caching annotated methods declared in
58-
* {@code @Controller} and {@code @ControllerAdvice} components. Assists with
59-
* the following annotations:
58+
* {@code @Controller} and {@code @ControllerAdvice} components.
59+
*
60+
* <p>Assists with the following annotations:
6061
* <ul>
6162
* <li>{@code @InitBinder}
6263
* <li>{@code @ModelAttribute}
@@ -340,7 +341,6 @@ private InvocableHandlerMethod createAttributeMethod(Object bean, Method method)
340341
*/
341342
@Nullable
342343
public InvocableHandlerMethod getExceptionHandlerMethod(Throwable ex, HandlerMethod handlerMethod) {
343-
344344
Class<?> handlerType = handlerMethod.getBeanType();
345345

346346
// Controller-local first...

0 commit comments

Comments
 (0)