Phillip Webb
3aeb18d618
Add license header to gradle files
...
See gh-46065
6 months ago
Phillip Webb
d66b28fcba
Update end copyright year to 'present'
...
See gh-46065
6 months ago
Johnny Lim
08c67cc353
Replace deprecated Project.task()
...
See gh-45009
Signed-off-by: Johnny Lim <izeye@naver.com>
8 months ago
Phillip Webb
2143d702f2
Polish boolean members that can use the default `false` value
8 months ago
Andy Wilkinson
3a6e4e9e58
Add checks for factories files
...
META-INF/spring.factories and META-INF/spring/aot.factories in the
main source set are now checked. The checks verify that:
- Each class listed in the values exists in the source set's output
- The classes are listed alphabetically
- Nested classes are identified using their binary name
Closes gh-44676
9 months ago
arefbehboudi
dbc1fc26e6
Polish
...
See gh-43560
1 year ago
Andy Wilkinson
bb3651b7d1
Reduce warnings reported by Eclipse
...
Closes gh-43269
1 year ago
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
Johnny Lim
a0d1c10d8a
Polish
...
See gh-42340
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
Stéphane Nicoll
156237227c
Migrate MockMvc tests to MockMvcTester
...
See gh-41198
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