Skip to content

Commit 25e2c1b

Browse files
committed
Merge branch '6.1.x'
# Conflicts: # framework-platform/framework-platform.gradle # spring-web/src/main/java/org/springframework/http/client/reactive/JettyClientHttpConnector.java
2 parents d92c57f + 14b9865 commit 25e2c1b

File tree

5 files changed

+17
-34
lines changed

5 files changed

+17
-34
lines changed

spring-context/src/main/java/org/springframework/cache/annotation/CachingConfigurer.java

+4
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232
* {@link #cacheManager()}, {@link #cacheResolver()}, {@link #keyGenerator()}, and
3333
* {@link #errorHandler()} for detailed instructions.
3434
*
35+
* <p><b>NOTE: A {@code CachingConfigurer} will get initialized early.</b>
36+
* Do not inject common dependencies into autowired fields directly; instead, consider
37+
* declaring a lazy {@link org.springframework.beans.factory.ObjectProvider} for those.
38+
*
3539
* @author Chris Beams
3640
* @author Stephane Nicoll
3741
* @since 3.1

spring-core/src/main/java/org/springframework/core/task/SimpleAsyncTaskExecutor.java

+5
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,11 @@ public void setTaskTerminationTimeout(long timeout) {
195195
* The default of -1 indicates no concurrency limit at all.
196196
* <p>This is the equivalent of a maximum pool size in a thread pool,
197197
* preventing temporary overload of the thread management system.
198+
* However, in contrast to a thread pool with a managed task queue,
199+
* this executor will block the submitter until the task can be
200+
* accepted when the configured concurrency limit has been reached.
201+
* If you prefer queue-based task hand-offs without such blocking,
202+
* consider using a {@code ThreadPoolTaskExecutor} instead.
198203
* @see #UNBOUNDED_CONCURRENCY
199204
* @see org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor#setMaxPoolSize
200205
*/

spring-tx/src/main/java/org/springframework/transaction/annotation/TransactionManagementConfigurer.java

+5-1
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-2024 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.
@@ -30,6 +30,10 @@
3030
* <p>See @{@link EnableTransactionManagement} for general examples and context;
3131
* see {@link #annotationDrivenTransactionManager()} for detailed instructions.
3232
*
33+
* <p><b>NOTE: A {@code TransactionManagementConfigurer} will get initialized early.</b>
34+
* Do not inject common dependencies into autowired fields directly; instead, consider
35+
* declaring a lazy {@link org.springframework.beans.factory.ObjectProvider} for those.
36+
*
3337
* <p>Note that in by-type lookup disambiguation cases, an alternative approach to
3438
* implementing this interface is to simply mark one of the offending
3539
* {@code PlatformTransactionManager} {@code @Bean} methods (or

spring-web/src/main/java/org/springframework/http/client/reactive/JettyClientHttpConnector.java

+1-1
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-2024 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.

spring-webflux/src/main/java/org/springframework/web/reactive/socket/adapter/JettyWebSocketHandlerAdapter.java

+2-32
Original file line numberDiff line numberDiff line change
@@ -287,48 +287,18 @@ public void toByteBuffer(int srcPos, ByteBuffer dest, int destPos, int length) {
287287

288288
@Override
289289
public ByteBufferIterator readableByteBuffers() {
290-
ByteBufferIterator delegateIterator = this.delegate.readableByteBuffers();
291-
return new JettyByteBufferIterator(delegateIterator);
290+
return this.delegate.readableByteBuffers();
292291
}
293292

294293
@Override
295294
public ByteBufferIterator writableByteBuffers() {
296-
ByteBufferIterator delegateIterator = this.delegate.writableByteBuffers();
297-
return new JettyByteBufferIterator(delegateIterator);
295+
return this.delegate.writableByteBuffers();
298296
}
299297

300298
@Override
301299
public String toString(int index, int length, Charset charset) {
302300
return this.delegate.toString(index, length, charset);
303301
}
304-
305-
306-
private static class JettyByteBufferIterator implements ByteBufferIterator {
307-
308-
private final ByteBufferIterator delegate;
309-
310-
311-
JettyByteBufferIterator(ByteBufferIterator delegate) {
312-
Assert.notNull(delegate, "Delegate must not be null");
313-
314-
this.delegate = delegate;
315-
}
316-
317-
@Override
318-
public void close() {
319-
this.delegate.close();
320-
}
321-
322-
@Override
323-
public boolean hasNext() {
324-
return this.delegate.hasNext();
325-
}
326-
327-
@Override
328-
public ByteBuffer next() {
329-
return this.delegate.next();
330-
}
331-
}
332302
}
333303

334304
}

0 commit comments

Comments
 (0)