Skip to content

Commit 9956cc1

Browse files
committed
Merge branch '6.2.x'
2 parents 8379ac7 + 9fd1d0c commit 9956cc1

File tree

10 files changed

+55
-41
lines changed

10 files changed

+55
-41
lines changed

spring-aop/src/main/java/org/springframework/aop/aspectj/annotation/ReflectiveAspectJAdvisorFactory.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public ReflectiveAspectJAdvisorFactory() {
110110
* Create a new {@code ReflectiveAspectJAdvisorFactory}, propagating the given
111111
* {@link BeanFactory} to the created {@link AspectJExpressionPointcut} instances,
112112
* for bean pointcut handling as well as consistent {@link ClassLoader} resolution.
113-
* @param beanFactory the BeanFactory to propagate (may be {@code null}}
113+
* @param beanFactory the BeanFactory to propagate (may be {@code null})
114114
* @since 4.3.6
115115
* @see AspectJExpressionPointcut#setBeanFactory
116116
* @see org.springframework.beans.factory.config.ConfigurableBeanFactory#getBeanClassLoader()

spring-core/src/main/java/org/springframework/util/ObjectUtils.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -410,10 +410,10 @@ public static int nullSafeHash(@Nullable Object @Nullable ... elements) {
410410
}
411411

412412
/**
413-
* Return a hash code for the given object; typically the value of
414-
* {@code Object#hashCode()}}. If the object is an array,
415-
* this method will delegate to any of the {@code Arrays.hashCode}
416-
* methods. If the object is {@code null}, this method returns 0.
413+
* Return a hash code for the given object, typically the value of
414+
* {@link Object#hashCode()}. If the object is an array, this method
415+
* will delegate to one of the {@code Arrays.hashCode} methods. If
416+
* the object is {@code null}, this method returns {@code 0}.
417417
* @see Object#hashCode()
418418
* @see Arrays
419419
*/

spring-jms/src/main/java/org/springframework/jms/connection/UserCredentialsConnectionFactoryAdapter.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 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.
@@ -36,7 +36,7 @@
3636
* given user credentials to every standard methods that can also be used with
3737
* authentication, this {@code createConnection()} and {@code createContext()}. In
3838
* other words, it is implicitly invoking {@code createConnection(username, password)} or
39-
* {@code createContext(username, password)}} on the target. All other methods simply
39+
* {@code createContext(username, password)} on the target. All other methods simply
4040
* delegate to the corresponding methods of the target ConnectionFactory.
4141
*
4242
* <p>Can be used to proxy a target JNDI ConnectionFactory that does not have user

spring-jms/src/main/java/org/springframework/jms/support/converter/MessagingMessageConverter.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2023 the original author or authors.
2+
* Copyright 2002-2025 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.
@@ -132,7 +132,7 @@ protected Object extractPayload(jakarta.jms.Message message) throws JMSException
132132
/**
133133
* Create a JMS message for the specified payload and conversionHint.
134134
* The conversion hint is an extra object passed to the {@link MessageConverter},
135-
* for example, the associated {@code MethodParameter} (may be {@code null}}.
135+
* for example, the associated {@code MethodParameter} (may be {@code null}).
136136
* @since 4.3
137137
* @see MessageConverter#toMessage(Object, Session)
138138
*/

spring-jms/src/main/java/org/springframework/jms/support/converter/SmartMessageConverter.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2016 the original author or authors.
2+
* Copyright 2002-2025 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.
@@ -40,7 +40,7 @@ public interface SmartMessageConverter extends MessageConverter {
4040
* @param object the object to convert
4141
* @param session the Session to use for creating a JMS Message
4242
* @param conversionHint an extra object passed to the {@link MessageConverter},
43-
* for example, the associated {@code MethodParameter} (may be {@code null}}
43+
* for example, the associated {@code MethodParameter} (may be {@code null})
4444
* @return the JMS Message
4545
* @throws jakarta.jms.JMSException if thrown by JMS API methods
4646
* @throws MessageConversionException in case of conversion failure

spring-messaging/src/main/java/org/springframework/messaging/converter/AbstractMessageConverter.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2023 the original author or authors.
2+
* Copyright 2002-2025 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.
@@ -275,7 +275,7 @@ protected boolean supportsMimeType(@Nullable MessageHeaders headers) {
275275
* @param message the input message
276276
* @param targetClass the target class for the conversion
277277
* @param conversionHint an extra object passed to the {@link MessageConverter},
278-
* for example, the associated {@code MethodParameter} (may be {@code null}}
278+
* for example, the associated {@code MethodParameter} (may be {@code null})
279279
* @return the result of the conversion, or {@code null} if the converter cannot
280280
* perform the conversion
281281
* @since 4.2
@@ -291,7 +291,7 @@ protected boolean supportsMimeType(@Nullable MessageHeaders headers) {
291291
* @param payload the Object to convert
292292
* @param headers optional headers for the message (may be {@code null})
293293
* @param conversionHint an extra object passed to the {@link MessageConverter},
294-
* for example, the associated {@code MethodParameter} (may be {@code null}}
294+
* for example, the associated {@code MethodParameter} (may be {@code null})
295295
* @return the resulting payload for the message, or {@code null} if the converter
296296
* cannot perform the conversion
297297
* @since 4.2

spring-messaging/src/main/java/org/springframework/messaging/converter/SmartMessageConverter.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2017 the original author or authors.
2+
* Copyright 2002-2025 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.
@@ -40,7 +40,7 @@ public interface SmartMessageConverter extends MessageConverter {
4040
* @param message the input message
4141
* @param targetClass the target class for the conversion
4242
* @param conversionHint an extra object passed to the {@link MessageConverter},
43-
* for example, the associated {@code MethodParameter} (may be {@code null}}
43+
* for example, the associated {@code MethodParameter} (may be {@code null})
4444
* @return the result of the conversion, or {@code null} if the converter cannot
4545
* perform the conversion
4646
* @see #fromMessage(Message, Class)
@@ -54,7 +54,7 @@ public interface SmartMessageConverter extends MessageConverter {
5454
* @param payload the Object to convert
5555
* @param headers optional headers for the message (may be {@code null})
5656
* @param conversionHint an extra object passed to the {@link MessageConverter},
57-
* for example, the associated {@code MethodParameter} (may be {@code null}}
57+
* for example, the associated {@code MethodParameter} (may be {@code null})
5858
* @return the new message, or {@code null} if the converter does not support the
5959
* Object type or the target media type
6060
* @see #toMessage(Object, MessageHeaders)

spring-web/src/main/java/org/springframework/http/server/observation/ServerHttpObservationDocumentation.java

+18-11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2025 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.
@@ -23,9 +23,11 @@
2323
import io.micrometer.observation.docs.ObservationDocumentation;
2424

2525
/**
26-
* Documented {@link io.micrometer.common.KeyValue KeyValues} for the HTTP server observations
27-
* for Servlet-based web applications.
28-
* <p>This class is used by automated tools to document KeyValues attached to the HTTP server observations.
26+
* Documented {@link io.micrometer.common.KeyValue KeyValues} for the HTTP server
27+
* observations for Servlet-based web applications.
28+
*
29+
* <p>This class is used by automated tools to document KeyValues attached to the
30+
* HTTP server observations.
2931
*
3032
* @author Brian Clozel
3133
* @since 6.0
@@ -56,7 +58,8 @@ public KeyName[] getHighCardinalityKeyNames() {
5658
public enum LowCardinalityKeyNames implements KeyName {
5759

5860
/**
59-
* Name of HTTP request method or {@value KeyValue#NONE_VALUE} if the request was not received properly.
61+
* Name of the HTTP request method or {@value KeyValue#NONE_VALUE} if the
62+
* request was not received properly.
6063
*/
6164
METHOD {
6265
@Override
@@ -67,7 +70,8 @@ public String asString() {
6770
},
6871

6972
/**
70-
* HTTP response raw status code, or {@code "UNKNOWN"} if no response was created.
73+
* HTTP response raw status code, or {@code "UNKNOWN"} if no response was
74+
* created.
7175
*/
7276
STATUS {
7377
@Override
@@ -77,9 +81,10 @@ public String asString() {
7781
},
7882

7983
/**
80-
* URI pattern for the matching handler if available, falling back to {@code REDIRECTION} for 3xx responses,
81-
* {@code NOT_FOUND} for 404 responses, {@code root} for requests with no path info,
82-
* and {@code UNKNOWN} for all other requests.
84+
* URI pattern for the matching handler if available, falling back to
85+
* {@code REDIRECTION} for 3xx responses, {@code NOT_FOUND} for 404
86+
* responses, {@code root} for requests with no path info, and
87+
* {@code UNKNOWN} for all other requests.
8388
*/
8489
URI {
8590
@Override
@@ -89,7 +94,8 @@ public String asString() {
8994
},
9095

9196
/**
92-
* Name of the exception thrown during the exchange, or {@value KeyValue#NONE_VALUE}} if no exception happened.
97+
* Name of the exception thrown during the exchange, or
98+
* {@value KeyValue#NONE_VALUE} if no exception was thrown.
9399
*/
94100
EXCEPTION {
95101
@Override
@@ -113,7 +119,7 @@ public String asString() {
113119
public enum HighCardinalityKeyNames implements KeyName {
114120

115121
/**
116-
* HTTP request URI.
122+
* HTTP request URL.
117123
*/
118124
HTTP_URL {
119125
@Override
@@ -123,4 +129,5 @@ public String asString() {
123129
}
124130

125131
}
132+
126133
}

spring-web/src/main/java/org/springframework/http/server/reactive/observation/ServerHttpObservationDocumentation.java

+18-11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2025 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.
@@ -23,9 +23,11 @@
2323
import io.micrometer.observation.docs.ObservationDocumentation;
2424

2525
/**
26-
* Documented {@link io.micrometer.common.KeyValue KeyValues} for the HTTP server observations
27-
* for reactive web applications.
28-
* <p>This class is used by automated tools to document KeyValues attached to the HTTP server observations.
26+
* Documented {@link io.micrometer.common.KeyValue KeyValues} for the HTTP server
27+
* observations for reactive web applications.
28+
*
29+
* <p>This class is used by automated tools to document KeyValues attached to the
30+
* HTTP server observations.
2931
*
3032
* @author Brian Clozel
3133
* @since 6.0
@@ -56,7 +58,8 @@ public KeyName[] getHighCardinalityKeyNames() {
5658
public enum LowCardinalityKeyNames implements KeyName {
5759

5860
/**
59-
* Name of HTTP request method or {@value KeyValue#NONE_VALUE} if the request was not received properly.
61+
* Name of the HTTP request method or {@value KeyValue#NONE_VALUE} if the
62+
* request was not received properly.
6063
*/
6164
METHOD {
6265
@Override
@@ -67,7 +70,8 @@ public String asString() {
6770
},
6871

6972
/**
70-
* HTTP response raw status code, or {@code "UNKNOWN"} if no response was created.
73+
* HTTP response raw status code, or {@code "UNKNOWN"} if no response was
74+
* created.
7175
*/
7276
STATUS {
7377
@Override
@@ -77,9 +81,10 @@ public String asString() {
7781
},
7882

7983
/**
80-
* URI pattern for the matching handler if available, falling back to {@code REDIRECTION} for 3xx responses,
81-
* {@code NOT_FOUND} for 404 responses, {@code root} for requests with no path info,
82-
* and {@code UNKNOWN} for all other requests.
84+
* URI pattern for the matching handler if available, falling back to
85+
* {@code REDIRECTION} for 3xx responses, {@code NOT_FOUND} for 404
86+
* responses, {@code root} for requests with no path info, and
87+
* {@code UNKNOWN} for all other requests.
8388
*/
8489
URI {
8590
@Override
@@ -89,7 +94,8 @@ public String asString() {
8994
},
9095

9196
/**
92-
* Name of the exception thrown during the exchange, or {@value KeyValue#NONE_VALUE} if no exception happened.
97+
* Name of the exception thrown during the exchange, or
98+
* {@value KeyValue#NONE_VALUE} if no exception was thrown.
9399
*/
94100
EXCEPTION {
95101
@Override
@@ -113,7 +119,7 @@ public String asString() {
113119
public enum HighCardinalityKeyNames implements KeyName {
114120

115121
/**
116-
* HTTP request URI.
122+
* HTTP request URL.
117123
*/
118124
HTTP_URL {
119125
@Override
@@ -123,4 +129,5 @@ public String asString() {
123129
}
124130

125131
}
132+
126133
}

spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/MvcUriComponentsBuilder.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ protected MvcUriComponentsBuilder(UriComponentsBuilder baseUrl) {
139139

140140
/**
141141
* Create an instance of this class with a base URL. After that calls to one
142-
* of the instance based {@code withXxx(...}} methods will create URLs relative
142+
* of the instance based {@code withXxx(...)} methods will create URLs relative
143143
* to the given base URL.
144144
*/
145145
public static MvcUriComponentsBuilder relativeTo(UriComponentsBuilder baseUrl) {
@@ -490,7 +490,7 @@ public UriComponentsBuilder withController(Class<?> controllerType) {
490490
}
491491

492492
/**
493-
* An alternative to {@link #fromMethodName(Class, String, Object...)}} for
493+
* An alternative to {@link #fromMethodName(Class, String, Object...)} for
494494
* use with an instance of this class created via {@link #relativeTo}.
495495
* <p><strong>Note:</strong> This method extracts values from "Forwarded"
496496
* and "X-Forwarded-*" headers if found. See class-level docs.

0 commit comments

Comments
 (0)