Commit Graph
275 Commits
Author SHA1 Message Date
Manu Sridharan 1c50b1cb7c Fix new warnings from NullAway 0.14.1
Signed-off-by: Manu Sridharan <msridhar@gmail.com>

See gh-51507
2026-09-04 12:56:34 +01:00
Vladimir Sitnikov ff3086700b Fix unrecognized JSpecify nullable annotations
Signed-off-by: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>

See gh-51555
2026-09-04 09:40:47 +01:00
kdomo 3d037f9df6 Correct Assert messages that name the wrong parameter
Three Assert messages named a parameter that does not exist on the
method. In each case the correct name is already used by neighbouring
code in the same class.

Signed-off-by: kdomo <dongho5088@naver.com>

See gh-51568
2026-09-04 09:10:05 +01:00
Andy Wilkinson 10190c7cc7 Fix race condition in ProcessRunnerTests
There's a race between destruction of the process completing and the
test checking that the process has been destroyed. When the test
wins the race, it fails.

This commit removes the race condition by updating the test to wait
until the process has been destroyed.

Closes gh-51571
2026-09-04 08:40:35 +01:00
Andy Wilkinson d6c2e687b0 Polish "Use constructor injection in classes that partipate in @Import"
See gh-51490

Signed-off-by: Andy Wilkinson <andy.wilkinson@broadcom.com>
2026-09-02 14:16:07 +01:00
Andy Wilkinson bf8731693b Polish "Improve Docker Compose ProcessRunner's handling of failure cases"
See gh-50963

Signed-off-by: Andy Wilkinson <andy.wilkinson@broadcom.com>
2026-09-02 09:11:53 +01:00
Sebastien Tardif 27e96308ed Improve Docker Compose ProcessRunner's handling of failure cases
Release the output reader latch in a finally block so a failing stream
read or output consumer cannot leave ProcessRunner.run blocked on
CountDownLatch.await after the child process has exited.

Destroy the child process when waitFor is interrupted so Docker Compose
commands are not left running as orphans.

Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>

See gh-50963
2026-09-02 09:02:00 +01:00
Phillip Webb 5a21e0d698 Upgrade to spring-javaformat 0.0.48
Closes gh-51452
2026-08-25 13:58:58 -07:00
Manu Sridharan 23fc7dd183 Fix warning from NullAway 0.14.0 related to override
See gh-51409

Signed-off-by: Manu Sridharan <msridhar@gmail.com>
2026-08-25 12:29:02 -07:00
chisanw 857d1b7a8a Fix typos in service connection documentation
See gh-51431

Signed-off-by: chisanw <keuye06380618@gmail.com>
2026-08-25 12:07:13 -07:00
Phillip Webb 068bb037bf Change code to make Eclipse compiler happy
Extract a local variable to fix compiler error that only seems to
happen in Eclipse.
2026-08-24 19:07:53 -07:00
Andy Wilkinson 6dbc7e9a51 Use method on String to identify Java 27
At the time of writing, https://javaalmanac.io lists
EnumSet.spliterator as being new in Java 27, but that's not the case.

This commit switches to using String.encodedLength(Charset) instead.
This method is new in Java 27 and also aligns with the existing
TWENTY_SIX value that already uses a method on String for version
identification.

See gh-51422
2026-08-24 15:47:34 +01:00
Andy Wilkinson 6e58a6ff8b Polish
See gh-51422
2026-08-24 15:31:30 +01:00
Andy Wilkinson ff153f21d8 Add TWENTY_SEVEN to JavaVersion
Closes gh-51422
2026-08-24 14:51:52 +01:00
Stéphane Nicoll 43d3cf57eb Close reader in GsonTester
This harmonizes how JSON marshaller testers operate on a stream. Also
added tests that checks the source is closed as expected for all
implementations.

Closes gh-51417
2026-08-24 08:21:51 +02:00
Stéphane Nicoll 5402f5b43f Polish "Release file handle when comparing AOT file content"
See gh-51398
2026-08-24 08:05:45 +02:00
dlwldn30 4a1abb9617 Release file handle when comparing AOT file content
RequireNewOrMatchingContentFileHandler reads the already generated file
through content.getInputStream().readAllBytes(). That method does not
close the stream, and the stream is never assigned, so it cannot
be closed at all.

During AOT processing the content is a FileSystemResource, so each
comparison leaks a file handle. FileSystemGeneratedFiles already uses
try-with-resources when it consumes an InputStreamSource.

Read the existing content inside a try-with-resources block.

See gh-51398

Signed-off-by: dlwldn30 <dlwldn30@naver.com>
2026-08-24 08:05:38 +02:00
Stéphane Nicoll b7ba1d8521 Revert "Work around Gradle changing line endings during property expansion"
This reverts commit 936998647e.

Closes gh-50905
2026-08-10 16:19:33 +02:00
Stéphane Nicoll f40977b642 Allow profiles auto-completion for spring.profiles.group
Closes gh-51273
2026-08-05 15:11:48 +02:00
Stéphane Nicoll d9ff81ff4a Polish "Adapt to improvements in Nullaway 0.13.8"
See gh-50972
2026-07-21 14:48:46 +02:00
Stéphane Nicoll 6d45e6aa64 Upgrade to Logback 1.5.38
Closes gh-50985
2026-07-20 10:30:27 +02:00
Stéphane Nicoll f01e775082 Polish 2026-07-15 13:22:42 +02:00
Stéphane Nicoll a2af5acbe2 Polish "Avoid removing application-managed JUL bridge handler"
See gh-50779
2026-07-14 18:17:03 +02:00
dhruv-15-03 fe5164521d Avoid removing application-managed JUL bridge handler
`LogbackLoggingSystem` and `Log4J2LoggingSystem` install a JUL bridge
handler only when the application is not already managing `java.util.logging`.
However, `cleanUp()` removed the bridge handler whenever the bridge class
was present on the classpath, so Spring Boot uninstalled a bridge handler
that an application had installed and managed itself.

Track whether the bridge handler was installed by Spring Boot and only
remove it during cleanup when that is the case.

See gh-50779

Signed-off-by: dhruv-15-03 <dhruvrastogi2004@gmail.com>
2026-07-14 18:11:50 +02:00
Stéphane Nicoll 22eef97293 Add missing or outdated copyright headers
See gh-50894
2026-06-30 10:04:39 +02:00
Yanming Zhou 9824f25998 Remove unnecessary @Nullables from local array variable declarations
See gh-50881

Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
2026-06-29 10:28:32 +01:00
Andy Wilkinson ecacc0aa1e Polish "Remove unnecessary @Nullables from local variable declarations"
See gh-50866

Signed-off-by: Andy Wilkinson <andy.wilkinson@broadcom.com>
2026-06-28 12:05:09 +01:00
Ahmed El amraouiyine 249dab6d6f Handle unresolved validation target types
See gh-50798

Signed-off-by: Ahmed El amraouiyine <amraouiyine@gmail.com>
2026-06-24 21:09:33 +01:00
SJLIM 34ce653f95 Add nested override coverage for @SpringBootTest imports
See gh-50625

Signed-off-by: SJLIM <yyvaca30@gmail.com>
2026-06-24 19:47:35 +01:00
Yanming Zhou 9d5c98b7e9 Replace isAssignableFrom() with isInstance() where feasible
Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>

See gh-50750
2026-06-24 19:11:59 +01:00
Andy Wilkinson 8715efc615 Polish "Address new warnings from NullAway 0.13.6"
See gh-50701
2026-06-24 13:18:32 +01:00
Manu Sridharan 2b7f6f3c69 Address new warnings from NullAway 0.13.6
Signed-off-by: Manu Sridharan <msridhar@gmail.com>

See gh-50701
2026-06-24 13:16:07 +01:00
Stéphane Nicoll 58f1a584d3 Merge branch '3.5.x' into 4.0.x
Closes gh-50728
2026-06-09 16:26:28 +02:00
Stéphane Nicoll 98084aab2b Reformat additional-spring-configuration-metadata.json files 2026-05-30 14:28:53 +02:00
Stéphane Nicoll 3209464a8a Merge branch '3.5.x' into 4.0.x
Closes gh-50617
2026-05-29 12:30:52 +02:00
Stéphane Nicoll e3bb5cf669 Polish 2026-05-26 09:28:04 +02:00
Stéphane Nicoll 86fed81403 Merge branch '3.5.x' into 4.0.x
Closes gh-50498
2026-05-25 17:16:59 +02:00
Stéphane Nicoll 8e337c5ddc Merge branch '3.5.x' into 4.0.x
Closes gh-50496
2026-05-25 17:09:13 +02:00
Andy Wilkinson add52b6ccd Merge branch '3.5.x' into 4.0.x
Closes gh-50439
2026-05-14 15:02:24 +01:00
Phillip Webb 3213393bf9 Merge branch '3.5.x' into 4.0.x
Closes gh-50424
2026-05-13 07:47:07 -07:00
Phillip Webb 4f846b1645 Merge branch '3.5.x' into 4.0.x
Closes gh-50413
2026-05-12 13:07:55 -07:00
Phillip Webb 86c600eb90 Merge branch '3.5.x' into 4.0.x
Closes gh-50407
2026-05-12 11:33:34 -07:00
Andy Wilkinson 065c463cef Improve nullability of TestPropertyValues
Closes gh-50269
2026-05-01 08:39:18 +01:00
Stéphane Nicoll 813913ccb8 Merge branch '3.5.x' into 4.0.x
Closes gh-50233
2026-04-28 13:54:49 +02:00
Andy Wilkinson afc61f922c Merge branch '3.5.x' into 4.0.x
Closes gh-50213
2026-04-25 07:47:49 +01:00
Andy Wilkinson 98daa8ea30 Merge branch '3.5.x' into 4.0.x 2026-04-23 11:33:21 +01:00
Andy Wilkinson ef8527bb0e Merge branch '3.5.x' into 4.0.x
Closes gh-50185
2026-04-23 08:55:02 +01:00
Andy Wilkinson 4a7bd332b6 Merge branch '3.5.x' into 4.0.x
Closes gh-50183
2026-04-23 08:52:16 +01:00
Andy Wilkinson 8e013b6f90 Merge branch '3.5.x' into 4.0.x
Closes gh-50178
2026-04-23 08:48:16 +01:00
Phillip Webb 3cf39544c3 Merge branch '3.5.x' into 4.0.x
Closes gh-50064
2026-04-13 15:41:08 -07:00