Sam Brannen
7fcd1de8e3
Use AssertJ's isEmpty() instead of hasSize(0)
...
Achieved via global search-and-replace.
2 years ago
Adam Ostrožlík
0ccb64fe10
Replace Collectors.toList with Stream.toList
...
Closes gh-29203
2 years ago
Marc Wrobel
92a231cf91
Fix typos in Javadoc, reference docs, and code
...
Closes gh-28822
2 years ago
Marc Wrobel
c48c5e7691
Fix and improve Javadoc in spring-context
...
Closes gh-28802
2 years ago
Juergen Hoeller
2b65f274dc
Use Set.of instead of HashSet with Arrays.asList
3 years ago
Juergen Hoeller
f771603789
Polishing
3 years ago
Stephane Nicoll
0267da8d2e
Polish
3 years ago
Sam Brannen
c04fa858fc
Partially revert e1200f34e7
...
Syntax for this try-with-resources use case only permitted on Java 9+.
3 years ago
Sam Brannen
c3ce4f0f90
Polish contribution
...
See gh-27823
3 years ago
Marten Deinum
e1200f34e7
Use try-with-resources for AutoClosables where feasible
...
Where unfeasible, this commit adds inline comments to explain why
try-with-resources must not be used in certain scenarios. The purpose
of the comments is to avoid accidental conversion to try-with-resources
at a later date.
Closes gh-27823
3 years ago
SungMin
32af39d6e6
Use 'toString(Charset)' instead of 'toString(String)' for encodings ( #27646 )
...
Co-authored-by: 홍성민(SungMin Hong)/Platform Engineering팀/11ST <devmonster@11stcorp.com>
3 years ago
Sam Brannen
0eb73c130c
Apply "instanceof pattern matching" Eclipse clean-up in spring-context-indexer
3 years ago
Juergen Hoeller
d84ca2ba90
Jakarta EE 9 migration
...
Upgrades many dependency declarations; removes old EJB 2.x support and outdated Servlet-based integrations (Commons FileUpload, FreeMarker JSP support, Tiles).
Closes gh-22093
Closes gh-25354
Closes gh-26185
Closes gh-27423
See gh-27424
3 years ago
Brian Clozel
cecc0849a8
Upgrade to Gradle 7.2
...
This commit upgrades Gradle to 7.2.
Gradle configuration names are updated accordingly.
This also upgrades Gradle build plugins.
See gh-26870
3 years ago
Sam Brannen
e0690335fc
Polish Javadoc in spring-context-indexer
4 years ago
Juergen Hoeller
4164fc63b1
CandidateComponentsIndexer introspects any kind of class (including records)
...
Closes gh-26909
4 years ago
Sam Brannen
cdc234d7db
Polish contribution
...
See gh-25446
4 years ago
XenoAmess
c547809e89
Use instanceof instead of Class#isInstance where feasible
...
Closes gh-25446
4 years ago
XenoAmess
3b12beb1b8
Simplify if-statements with instanceof checks
...
Closes gh-25449
4 years ago
Sam Brannen
2719dcb29b
Delete unused imports
4 years ago
XenoAmess
b6c463676a
Use Stream#toArray in TestCompiler
...
Closes gh-25453
4 years ago
Sam Brannen
6222efc54b
Polish contribution
...
See gh-24785
5 years ago
Сергей Цыпанов
65aa2d03f0
Simplify conversion of ByteArrayOutputStream to String
...
Closes gh-24785
5 years ago
Sam Brannen
5718bf424b
Use Gradle test fixture support for spring-core
...
See gh-23550
5 years ago
Phillip Webb
d945ae9191
Add blank line between java and javax imports
...
See gh-23539
Co-authored-by: Sam Brannen <sbrannen@pivotal.io>
5 years ago
Phillip Webb
deba2ed1b3
Add blank line between java and javax imports
...
See gh-23539
5 years ago
Brian Clozel
d4089747b8
Use dependency management in Framework build
...
Prior to this commit, the Spring Framework build would partially use the
dependency management plugin to import and enforce BOMs.
This commit applies the dependency management plugin to all Java
projects and regroups all version management declaration in the root
`build.gradle` file (versions and exclusions).
Some versions are overridden in specific modules for
backwards-compatibility reasons or extended support.
This commit also adds the Gradle versions plugin that checks for
dependency upgrades in artifact repositories and produces a report; you
can use the following:
./gradlew dependencyUpdates
5 years ago
Brian Clozel
b96cbb4e65
Close streams in tests
...
This commit ensures that file streams are properly closed in tests.
This seems to cause issues on Windows as the OS cannot delete temp
folders.
This is similar to spring-io/initializr#862
See gh-23507
5 years ago
Sam Brannen
3f3e41923f
Migrate rest of test suite from JUnit 4 to JUnit Jupiter
...
This commit migrates the rest of Spring's test suite to JUnit Jupiter,
except spring-test which will be migrated in a separate commit.
See gh-23451
5 years ago
Sam Brannen
8b68400bbe
Remove use of @Nullable from copy of SortedProperties
...
Rationale: @Nullable is not visible in the spring-context-indexer
project.
6 years ago
Sam Brannen
259dd3d731
Polishing
6 years ago
Sam Brannen
44a00b58c8
Polish contribution
...
See gh-22383
6 years ago
Vedran Pavic
b51e553f55
Ensure indexer output is deterministic and repeatable
...
Closes gh-22383
6 years ago
Phillip Webb
95a9d46a87
Migrate Hamcrest assertions to AssertJ
...
Migrate all existing `assertThat(..., Matcher)` assertions to AssertJ
and add checkstyle rules to ensure they don't return.
See gh-23022
6 years ago
Phillip Webb
816bbee8de
Remove '.*' imports from tests
...
Organize test imports to expand all '.*' static imports into
fully qualified imports.
This update will allow us to use additional checkstyle rules in
the future, and will also help if we migrate fully to AssertJ.
6 years ago
Phil Webb
d7320de871
Migrate away from ExpectedException ( #22922 )
...
* Add limited checkstyles to test code
Add a limited set of checkstyle rules to the test codebase to improve
code consistency.
* Fix checksyle violations in test code
* Organize imports to fix checkstyle for test code
* Migrate to assertThatExceptionOfType
Migrate aware from ExpectedException rules to AssertJ exception
assertions. Also include a checkstyle rules to ensure that the
the ExpectedException is not accidentally used in the future.
See gh-22894
6 years ago
Sam Brannen
c79fdfb668
Use assertThat from Hamcrest instead of JUnit 4
...
org.junit.Assert.assertThat() is deprecated as of JUnit 4.13.
See gh-22894
6 years ago
Spring Operator
540759ec41
URL Cleanup
...
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).
# Fixed URLs
## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.
* [ ] http://www.apache.org/licenses/ with 1 occurrences migrated to:
https://www.apache.org/licenses/ ([https](https://www.apache.org/licenses/ ) result 200).
* [ ] http://www.apache.org/licenses/LICENSE-2.0 with 6515 occurrences migrated to:
https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0 ) result 200).
6 years ago
Spring Operator
dc6f63f610
URL Cleanup
...
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).
# Fixed URLs
## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.
* [ ] http://www.apache.org/licenses/ with 1 occurrences migrated to:
https://www.apache.org/licenses/ ([https](https://www.apache.org/licenses/ ) result 200).
* [ ] http://www.apache.org/licenses/LICENSE-2.0 with 6625 occurrences migrated to:
https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0 ) result 200).
6 years ago
Johnny Lim
046531fc75
Polish
...
Closes gh-22482
6 years ago
Stephane Nicoll
0cc77e812c
Polish "Ensure indexer gracefully handle missing meta annotations"
...
Closes gh-22385
6 years ago
Vedran Pavic
87e5f0db01
Ensure indexer gracefully handle missing meta annotations
...
See gh-22385
6 years ago
Stephane Nicoll
77129f5a2b
Polish
6 years ago
Juergen Hoeller
f7d22a0b42
Move indexer implementation to index.processor subpackage (for Jigsaw)
...
Issue: SPR-16979
6 years ago
Juergen Hoeller
40efcc933c
Polishing
6 years ago
Phillip Webb
a89e716cc7
Use tabs rather than spaces in tests
...
Update tests to ensure that tabs are used instead of spaces. Also
consistently apply a new line at the end of each file.
Issue: SPR-16968
6 years ago
Phillip Webb
866e9d702e
Use consistent block style
...
Update all code to use a consistent block style.
Issue: SPR-16968
6 years ago
Phillip Webb
e0480f75ac
Fix javadoc checkstyle issues
...
Fix checkstyle violations for javadoc.
Issue: SPR-16968
6 years ago
Juergen Hoeller
0777a80efe
Polishing
...
(cherry picked from commit a2765c0
)
7 years ago
Juergen Hoeller
e170cb0f79
Upgrade framework build to JPA 2.2 and JTA 1.3
...
Issue: SPR-16685
7 years ago