Phillip Webb
3481107ff7
Update copyright year of changed files
1 year ago
Moritz Halbritter
ce106eb43c
Remove calls to deprecated Project.getBuildDir() in Gradle files
...
Closes gh-42739
1 year ago
Moritz Halbritter
a3060652f8
Call String.toLowerCase and .toUppercase with explicit locale
...
Closes gh-42719
1 year ago
Phillip Webb
ad72411e2b
Apply conventions plugin to all subprojects
...
Closes gh-42438
1 year ago
Phillip Webb
aeafa20727
Prevent 'Recursive update' exceptions with Restarter
...
Update `Restarter` to prevent 'Recursive update' `IllegalStateException`
from being thrown. Calls to `objectFactory.getObject()` now happen
outside of `computeIfAbsent`.
Fixes gh-41571
1 year ago
Phillip Webb
2a4582b084
Update copyright year of changed files
2 years ago
Phillip Webb
0c1c7e844c
Don't detect main method from launcher classes
...
Update `MainMethod` discovery so that launcher classes from the
`org.springframework.boot.loader` code are not considered. This restores
the behavior of Spring Boot 2.7.11 and allows remote restart of uber
jars without pulling the loader classes into the `RestartClassLoader`.
Fixes gh-39733
2 years ago
Ahmed Ashour
207327d97c
Use method references when possible in test code
...
See gh-40974
2 years ago
Phillip Webb
dcccb3b2b1
Polish "Use method references when possible"
...
See gh-40974
2 years ago
Ahmed Ashour
507229eef8
Use method references when possible
...
See gh-40974
2 years ago
Andy Wilkinson
5e9161f785
Make DevToolsDataSourceAutoConfiguration back off without DataSource class
...
Manually tested as an automated test is prohibitively difficult as it
requires hiding one of the JDK's own classes.
Closes gh-40434
2 years ago
Moritz Halbritter
ff66036e90
Remove redundant Regex escapes
...
Closes gh-40116
2 years ago
Stéphane Nicoll
49c97bf6ca
Avoid use of bean overriding in tests
...
See gh-40111
2 years ago
Phillip Webb
8f1a330dd5
Update copyright header of cleaned up code
...
See gh-39259
2 years ago
Phillip Webb
ddb769bf7f
Polish 'Simplify conditionals'
...
See gh-39259
2 years ago
Tobias Lippert
65a1ff84e6
Simplify conditionals
...
See gh-39259
2 years ago
Andy Wilkinson
45c32854a5
Fix Checkstyle upgrade
...
Closes gh-38746
2 years ago
Yanming Zhou
8cb8999772
Ban call of URLEncoder.encode/URLDecoder.decode(String,String)
...
Add ArchUnit rules to ban the use of `URLEncoder` calls with String
charsets and use `Charset` calls instead.
See gh-38740
2 years ago
Yanming Zhou
84f7c2dba9
Remove unnecessary `final` modifiers
...
See gh-38739
2 years ago
Moritz Halbritter
d095a5e47d
Polish RestartApplicationListenerTests
2 years ago
Moritz Halbritter
9152217c96
Fix JUnit's @Nested usage
2 years ago
Phillip Webb
d47f8bf945
Update copyright year of changed files
2 years ago
Andy Wilkinson
1f0e311cb8
Completely disable restart when running tests
...
Fixes gh-37373
2 years ago
Johnny Lim
c9932bb73a
Use AssertJ's fail, not JUnit's
...
This commit also updates Checkstyle to prevent use of JUnit's
assertions from being reintroduced.
See gh-37655
2 years ago
Phillip Webb
3d6859e80f
Use the term "uber jar" in reference documentation and javadoc
...
Update reference documentation and javadoc to use the term "uber jar"
rather than "fat jar".
Closes gh-37653
2 years ago
Andy Wilkinson
ed5d16de84
Upgrade to Jetty 12
...
Closes gh-36073
2 years ago
Phillip Webb
8edec21a6f
Update copyright year of changed files
2 years ago
Moritz Halbritter
032d92a9fb
Cleanup remote debug tunnel leftovers from devtools
...
Closes gh-36808
2 years ago
Moritz Halbritter
62fb45f75f
Replace contains/put/get pattern with computeIfAbsent
2 years ago
Moritz Halbritter
7bb337aeb1
Polish tests
2 years ago
Moritz Halbritter
ed9169501e
Polish
2 years ago
Moritz Halbritter
726d2e6678
Remove unnecessary synchronization
...
- on AtomicBoolean in SpringApplicationBuilder
- on SimpleFormatter
- in a private method in FileSystemWatcher which is always called in a
synchronized block
- Replaced synchronized guarded HashMap with ConcurrentHashMap
2 years ago
Moritz Halbritter
1a8b8ce26e
Revert "Revise synchronized blocks"
...
This reverts commit 497bbf9c2d .
2 years ago
Moritz Halbritter
497bbf9c2d
Revise synchronized blocks
...
- Replace synchronized with Lock when guarding long-running operations
- Remove unnecessary synchronization in FileSystemWatcher
- Replace HashMap with ConcurrentHashMap in Restarter
- Remove unnecessary locking on AtomicBoolean in
SpringApplicationBuilder
- Remove unnecessary locking in SimpleFormatter
Closes gh-36670
2 years ago
Andy Wilkinson
984dc1d58f
Allow package-private main classes to be used with Devtools
...
Fixes gh-35858
3 years ago
Phillip Webb
9bacf4218c
Set 'spring.docker.compose.readiness.wait' property in devtools
...
Default 'spring.docker.compose.readiness.wait' to `ONLY_IF_STARTED`
when using devtools.
See gh-35435
3 years ago
Stefano Cordio
d802ca017b
Small assertions improvements
...
See gh-34796
3 years ago
Marc Leroux
b61834c92d
Replace Mockito argument captors with assertArg
...
See gh-35015
3 years ago
Phillip Webb
6b646f6a8e
Update copyright year of changed files
3 years ago
Phillip Webb
4e6148f47b
Search for main methods from the bottom of the stack
...
Update `MainMethod` to search from the bottom of the stack rather than
the start. Prior to this commit, an incorrect `main` method would be
found if more than one `main` was in the stack.
Fixes gh-35214
3 years ago
Andy Wilkinson
6b9bc012a5
Check that BPP and BFPP bean methods won't cause eager initialization
...
Closes gh-35164
3 years ago
Phillip Webb
1849b82334
Don't apply configuration-properties from auto-configuration plugin
...
Update the auto-configuration gradle plugin so that the
configuration-properties plugin is not longer automatically applied.
This allows us to have auto-configuration modules that don't ship
configuration properties.
Closes gh-35028
3 years ago
Phillip Webb
00dc942e94
Migrate to Spring Security lambda config
...
Closes gh-35011
3 years ago
Andy Wilkinson
899ae9c37c
Upgrade to Mockito 5.3.0
...
Closes gh-34998
3 years ago
Phillip Webb
3e9a136143
Polish gradle formatting
3 years ago
Phillip Webb
d442bfbeff
Polish
3 years ago
Phillip Webb
df5898a146
Reformat code following spring-javaformat upgrade
3 years ago
Johnny Lim
70d561a929
Polish "Set Reactor Netty's shutdownQuietPeriod to 0 when using devtools"
...
See gh-34140
3 years ago
Moritz Halbritter
2a843d1853
Set Reactor Netty's shutdownQuietPeriod to 0 when using devtools
...
See gh-33855
3 years ago
Johnny Lim
bc7fc90550
Replace Base64Utils with JDK's Base64
...
See gh-33967
3 years ago