Skip to content

Commit 9dc89dd

Browse files
authored
Merge branch 'spring-projects:main' into main
2 parents 5875661 + 8cd2c40 commit 9dc89dd

File tree

1,211 files changed

+10755
-8271
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,211 files changed

+10755
-8271
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ multiple edits or corrections of the same logical change. See
8686
for an overview of streamlining the commit history.
8787

8888
1. Format commit messages using 55 characters for the subject line, 72 characters per line
89-
for the description, followed by the issue fixed, e.g. `Closes gh-22276`. See the
89+
for the description, followed by the issue fixed, for example, `Closes gh-22276`. See the
9090
[Commit Guidelines section of Pro Git](https://git-scm.com/book/en/Distributed-Git-Contributing-to-a-Project#Commit-Guidelines)
9191
for best practices around commit messages, and use `git log` to see some examples.
9292

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,13 @@ configure([rootProject] + javaProjects) { project ->
9696
"https://fasterxml.github.io/jackson-core/javadoc/2.14/",
9797
"https://fasterxml.github.io/jackson-databind/javadoc/2.14/",
9898
"https://fasterxml.github.io/jackson-dataformat-xml/javadoc/2.14/",
99-
"https://hc.apache.org/httpcomponents-client-5.2.x/current/httpclient5/apidocs/",
99+
"https://hc.apache.org/httpcomponents-client-5.4.x/current/httpclient5/apidocs/",
100100
"https://projectreactor.io/docs/test/release/api/",
101101
"https://junit.org/junit4/javadoc/4.13.2/",
102102
// TODO Uncomment link to JUnit 5 docs once we execute Gradle with Java 18+.
103103
// See https://github.com/spring-projects/spring-framework/issues/27497
104104
//
105-
// "https://junit.org/junit5/docs/5.10.2/api/",
105+
// "https://junit.org/junit5/docs/5.11.1/api/",
106106
"https://www.reactive-streams.org/reactive-streams-1.0.3-javadoc/",
107107
//"https://javadoc.io/static/io.rsocket/rsocket-core/1.1.1/",
108108
"https://r2dbc.io/spec/1.0.0.RELEASE/api/",

buildSrc/src/main/java/org/springframework/build/CheckstyleConventions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public void apply(Project project) {
5050
project.getPlugins().apply(CheckstylePlugin.class);
5151
project.getTasks().withType(Checkstyle.class).forEach(checkstyle -> checkstyle.getMaxHeapSize().set("1g"));
5252
CheckstyleExtension checkstyle = project.getExtensions().getByType(CheckstyleExtension.class);
53-
checkstyle.setToolVersion("10.17.0");
53+
checkstyle.setToolVersion("10.18.1");
5454
checkstyle.getConfigDirectory().set(project.getRootProject().file("src/checkstyle"));
5555
String version = SpringJavaFormatPlugin.class.getPackage().getImplementationVersion();
5656
DependencySet checkstyleDependencies = project.getConfigurations().getByName("checkstyle").getDependencies();

framework-docs/antora.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ asciidoc:
7474
kotlin-issues: 'https://youtrack.jetbrains.com/issue'
7575
micrometer-docs: 'https://docs.micrometer.io/micrometer/reference'
7676
micrometer-context-propagation-docs: 'https://docs.micrometer.io/context-propagation/reference'
77+
petclinic-github-org: 'https://github.com/spring-petclinic'
7778
reactive-streams-site: 'https://www.reactive-streams.org'
7879
reactive-streams-spec: 'https://github.com/reactive-streams/reactive-streams-jvm/blob/master/README.md#specification'
7980
reactor-github-org: 'https://github.com/reactor'

framework-docs/modules/ROOT/pages/core/aop-api/advice.adoc

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ The following example shows a simple `MethodInterceptor` implementation:
5858
======
5959
Java::
6060
+
61-
[source,java,indent=0,subs="verbatim,quotes",role="primary"]
61+
[source,java,indent=0,subs="verbatim,quotes"]
6262
----
6363
public class DebugInterceptor implements MethodInterceptor {
6464
@@ -73,7 +73,7 @@ Java::
7373
7474
Kotlin::
7575
+
76-
[source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]
76+
[source,kotlin,indent=0,subs="verbatim,quotes"]
7777
----
7878
class DebugInterceptor : MethodInterceptor {
7979
@@ -139,7 +139,7 @@ The following example shows a before advice in Spring, which counts all method i
139139
======
140140
Java::
141141
+
142-
[source,java,indent=0,subs="verbatim,quotes",role="primary"]
142+
[source,java,indent=0,subs="verbatim,quotes"]
143143
----
144144
public class CountingBeforeAdvice implements MethodBeforeAdvice {
145145
@@ -157,7 +157,7 @@ Java::
157157
158158
Kotlin::
159159
+
160-
[source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]
160+
[source,kotlin,indent=0,subs="verbatim,quotes"]
161161
----
162162
class CountingBeforeAdvice : MethodBeforeAdvice {
163163
@@ -197,7 +197,7 @@ The following advice is invoked if a `RemoteException` is thrown (including from
197197
======
198198
Java::
199199
+
200-
[source,java,indent=0,subs="verbatim,quotes",role="primary"]
200+
[source,java,indent=0,subs="verbatim,quotes"]
201201
----
202202
public class RemoteThrowsAdvice implements ThrowsAdvice {
203203
@@ -209,7 +209,7 @@ Java::
209209
210210
Kotlin::
211211
+
212-
[source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]
212+
[source,kotlin,indent=0,subs="verbatim,quotes"]
213213
----
214214
class RemoteThrowsAdvice : ThrowsAdvice {
215215
@@ -228,7 +228,7 @@ arguments, and target object. The following advice is invoked if a `ServletExcep
228228
======
229229
Java::
230230
+
231-
[source,java,indent=0,subs="verbatim,quotes",role="primary"]
231+
[source,java,indent=0,subs="verbatim,quotes"]
232232
----
233233
public class ServletThrowsAdviceWithArguments implements ThrowsAdvice {
234234
@@ -240,7 +240,7 @@ Java::
240240
241241
Kotlin::
242242
+
243-
[source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]
243+
[source,kotlin,indent=0,subs="verbatim,quotes"]
244244
----
245245
class ServletThrowsAdviceWithArguments : ThrowsAdvice {
246246
@@ -259,7 +259,7 @@ methods can be combined in a single class. The following listing shows the final
259259
======
260260
Java::
261261
+
262-
[source,java,indent=0,subs="verbatim,quotes",role="primary"]
262+
[source,java,indent=0,subs="verbatim,quotes"]
263263
----
264264
public static class CombinedThrowsAdvice implements ThrowsAdvice {
265265
@@ -275,7 +275,7 @@ Java::
275275
276276
Kotlin::
277277
+
278-
[source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]
278+
[source,kotlin,indent=0,subs="verbatim,quotes"]
279279
----
280280
class CombinedThrowsAdvice : ThrowsAdvice {
281281
@@ -326,7 +326,7 @@ not thrown exceptions:
326326
======
327327
Java::
328328
+
329-
[source,java,indent=0,subs="verbatim,quotes",role="primary"]
329+
[source,java,indent=0,subs="verbatim,quotes"]
330330
----
331331
public class CountingAfterReturningAdvice implements AfterReturningAdvice {
332332
@@ -345,7 +345,7 @@ Java::
345345
346346
Kotlin::
347347
+
348-
[source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]
348+
[source,kotlin,indent=0,subs="verbatim,quotes"]
349349
----
350350
class CountingAfterReturningAdvice : AfterReturningAdvice {
351351
@@ -420,7 +420,7 @@ introduce the following interface to one or more objects:
420420
======
421421
Java::
422422
+
423-
[source,java,indent=0,subs="verbatim,quotes",role="primary"]
423+
[source,java,indent=0,subs="verbatim,quotes"]
424424
----
425425
public interface Lockable {
426426
void lock();
@@ -431,7 +431,7 @@ Java::
431431
432432
Kotlin::
433433
+
434-
[source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]
434+
[source,kotlin,indent=0,subs="verbatim,quotes"]
435435
----
436436
interface Lockable {
437437
fun lock()
@@ -480,7 +480,7 @@ The following example shows the example `LockMixin` class:
480480
======
481481
Java::
482482
+
483-
[source,java,indent=0,subs="verbatim,quotes",role="primary"]
483+
[source,java,indent=0,subs="verbatim,quotes"]
484484
----
485485
public class LockMixin extends DelegatingIntroductionInterceptor implements Lockable {
486486
@@ -510,7 +510,7 @@ Java::
510510
511511
Kotlin::
512512
+
513-
[source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]
513+
[source,kotlin,indent=0,subs="verbatim,quotes"]
514514
----
515515
class LockMixin : DelegatingIntroductionInterceptor(), Lockable {
516516
@@ -556,7 +556,7 @@ The following example shows our `LockMixinAdvisor` class:
556556
======
557557
Java::
558558
+
559-
[source,java,indent=0,subs="verbatim,quotes",role="primary"]
559+
[source,java,indent=0,subs="verbatim,quotes"]
560560
----
561561
public class LockMixinAdvisor extends DefaultIntroductionAdvisor {
562562
@@ -568,7 +568,7 @@ Java::
568568
569569
Kotlin::
570570
+
571-
[source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]
571+
[source,kotlin,indent=0,subs="verbatim,quotes"]
572572
----
573573
class LockMixinAdvisor : DefaultIntroductionAdvisor(LockMixin(), Lockable::class.java)
574574
----

framework-docs/modules/ROOT/pages/core/aop-api/advised.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ following methods:
1010
======
1111
Java::
1212
+
13-
[source,java,indent=0,subs="verbatim,quotes",role="primary"]
13+
[source,java,indent=0,subs="verbatim,quotes"]
1414
----
1515
Advisor[] getAdvisors();
1616
@@ -35,7 +35,7 @@ Java::
3535
3636
Kotlin::
3737
+
38-
[source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]
38+
[source,kotlin,indent=0,subs="verbatim,quotes"]
3939
----
4040
fun getAdvisors(): Array<Advisor>
4141
@@ -90,7 +90,7 @@ manipulating its advice:
9090
======
9191
Java::
9292
+
93-
[source,java,indent=0,subs="verbatim,quotes",role="primary"]
93+
[source,java,indent=0,subs="verbatim,quotes"]
9494
----
9595
Advised advised = (Advised) myObject;
9696
Advisor[] advisors = advised.getAdvisors();
@@ -110,7 +110,7 @@ Java::
110110
111111
Kotlin::
112112
+
113-
[source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]
113+
[source,kotlin,indent=0,subs="verbatim,quotes"]
114114
----
115115
val advised = myObject as Advised
116116
val advisors = advised.advisors

framework-docs/modules/ROOT/pages/core/aop-api/pfb.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,14 +196,14 @@ follows:
196196
======
197197
Java::
198198
+
199-
[source,java,indent=0,subs="verbatim,quotes",role="primary"]
199+
[source,java,indent=0,subs="verbatim,quotes"]
200200
----
201201
Person person = (Person) factory.getBean("person");
202202
----
203203
204204
Kotlin::
205205
+
206-
[source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]
206+
[source,kotlin,indent=0,subs="verbatim,quotes"]
207207
----
208208
val person = factory.getBean("person") as Person
209209
----

framework-docs/modules/ROOT/pages/core/aop-api/pointcuts.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ following example shows how to subclass `StaticMethodMatcherPointcut`:
187187
======
188188
Java::
189189
+
190-
[source,java,indent=0,subs="verbatim,quotes",role="primary"]
190+
[source,java,indent=0,subs="verbatim,quotes"]
191191
----
192192
class TestStaticPointcut extends StaticMethodMatcherPointcut {
193193
@@ -199,7 +199,7 @@ Java::
199199
200200
Kotlin::
201201
+
202-
[source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]
202+
[source,kotlin,indent=0,subs="verbatim,quotes"]
203203
----
204204
class TestStaticPointcut : StaticMethodMatcherPointcut() {
205205

framework-docs/modules/ROOT/pages/core/aop-api/prog.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ interceptor and one advisor:
1212
======
1313
Java::
1414
+
15-
[source,java,indent=0,subs="verbatim,quotes",role="primary"]
15+
[source,java,indent=0,subs="verbatim,quotes"]
1616
----
1717
ProxyFactory factory = new ProxyFactory(myBusinessInterfaceImpl);
1818
factory.addAdvice(myMethodInterceptor);
@@ -22,7 +22,7 @@ Java::
2222
2323
Kotlin::
2424
+
25-
[source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]
25+
[source,kotlin,indent=0,subs="verbatim,quotes"]
2626
----
2727
val factory = ProxyFactory(myBusinessInterfaceImpl)
2828
factory.addAdvice(myMethodInterceptor)

framework-docs/modules/ROOT/pages/core/aop-api/targetsource.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ You can change the target by using the `swap()` method on HotSwappableTargetSour
3838
======
3939
Java::
4040
+
41-
[source,java,indent=0,subs="verbatim,quotes",role="primary"]
41+
[source,java,indent=0,subs="verbatim,quotes"]
4242
----
4343
HotSwappableTargetSource swapper = (HotSwappableTargetSource) beanFactory.getBean("swapper");
4444
Object oldTarget = swapper.swap(newTarget);
4545
----
4646
4747
Kotlin::
4848
+
49-
[source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]
49+
[source,kotlin,indent=0,subs="verbatim,quotes"]
5050
----
5151
val swapper = beanFactory.getBean("swapper") as HotSwappableTargetSource
5252
val oldTarget = swapper.swap(newTarget)
@@ -152,15 +152,15 @@ The cast is defined as follows:
152152
======
153153
Java::
154154
+
155-
[source,java,indent=0,subs="verbatim,quotes",role="primary"]
155+
[source,java,indent=0,subs="verbatim,quotes"]
156156
----
157157
PoolingConfig conf = (PoolingConfig) beanFactory.getBean("businessObject");
158158
System.out.println("Max pool size is " + conf.getMaxSize());
159159
----
160160
161161
Kotlin::
162162
+
163-
[source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]
163+
[source,kotlin,indent=0,subs="verbatim,quotes"]
164164
----
165165
val conf = beanFactory.getBean("businessObject") as PoolingConfig
166166
println("Max pool size is " + conf.maxSize)

0 commit comments

Comments
 (0)