Juergen Hoeller
c99c3142ad
HibernateJpaDialect/HibernateTransactionManager alignment for 5.2+
...
See gh-25533
4 years ago
Juergen Hoeller
ba65cef52b
Upgrade Hibernate support baseline to 5.2+
...
Closes gh-25533
Closes gh-22326
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
Sam Brannen
b33d2fe683
Clean up warnings in Gradle build, polishing, etc.
4 years ago
Sam Brannen
ab0e651547
Polish SerializationTestUtils, clean up warnings, etc.
4 years ago
Juergen Hoeller
17cab9660c
Deprecate TransactionSynchronizationAdapter
...
Closes gh-21725
4 years ago
Сергей Цыпанов
7949937655
Remove redundant assignment of default values to volatile fields
4 years ago
Sam Brannen
8099fc8178
Use try-with-resources language construct where feasible
...
Closes gh-2063
Co-authored-by: igor-suhorukov <igor.suhorukov@gmail.com>
4 years ago
Juergen Hoeller
9c1c787ee9
Polishing
5 years ago
Juergen Hoeller
e955e52f2f
Refactor method name dispatching to switch statements
...
Closes gh-25163
5 years ago
Juergen Hoeller
7207f7645c
Deprecate InstantiationAwareBeanPostProcessorAdapter
...
Consistently relying on default methods in the corresponding interfaces.
Closes gh-25165
5 years ago
Juergen Hoeller
cd4ef6f781
Consistently refer to FlushMode.MANUAL instead of outdated NEVER
...
Closes gh-25158
5 years ago
Juergen Hoeller
27d5fdc5aa
Polishing
5 years ago
Juergen Hoeller
9bf7ff23c0
Introduce EntityManager initialization callbacks
...
JpaVendorAdapter.postProcessEntityManager and EntityManagerFactoryInfo.createNativeEntityManager SPI, plus convenient setEntityManagerInitializer configuration options.
Closes gh-25125
5 years ago
Juergen Hoeller
3c1ee64b7f
Explicit nullability declarations for all AOP Alliance methods
...
Includes consistent declarations in AOP Alliance related Spring AOP code.
Closes gh-24117
5 years ago
Rossen Stoyanchev
897557fd1b
Fix faulty tests
...
The tests were doing Callable async request processing in the main
thread which was already bound (via HandlerInterceptor#preProcess).
This leads to an ISE from TransactionSynchronizationManager#bindResource
but it went unnoticed because there is no Servlet container and no
async dispatch to continue processing.
See gh-24835
5 years ago
Rossen Stoyanchev
6f0a76a65f
Polishing
...
See gh-24835
5 years ago
Juergen Hoeller
2209e7cb92
Reuse empty class array constant in ClassUtils
...
Closes gh-24221
5 years ago
ZhangT
c5fb7b9fb7
Simplify some redundant code
...
Closes gh-24586
Co-authored-by: Sam Brannen <sbrannen@pivotal.io>
5 years ago
Hyunjin Choi
ede2a1d4b2
Remove unnecessary semicolon in some enum classes
5 years ago
Juergen Hoeller
e0319b1f79
Raise log level for exceptions from EntityManager close call
...
Closes gh-24501
5 years ago
Sam Brannen
7b6d83a106
Use Gradle test fixture support for spring-web
...
See gh-23550
5 years ago
Sam Brannen
726b1bb1d0
Rename test fixture package in spring-context
...
See gh-23550
5 years ago
Sam Brannen
7cd4ddf5fc
Rename test fixture package in spring-beans
...
See gh-23550
5 years ago
Sam Brannen
4260c34b47
Rename test fixture package in spring-core
...
See gh-23550
5 years ago
Sam Brannen
61d4ee594d
Use Gradle test fixture support for spring-beans and spring-context
...
See gh-23550
5 years ago
Sam Brannen
5718bf424b
Use Gradle test fixture support for spring-core
...
See gh-23550
5 years ago
Juergen Hoeller
773b2f06a1
Avoid Connection.isReadOnly() call in resetConnectionAfterTransaction
...
Closes gh-23747
5 years ago
Juergen Hoeller
b1ed0511f7
Upgrade to Tomcat 9.0.26, Undertow 2.0.26, Hibernate ORM 5.3.12
...
Includes Netty 4.1.39 (aligned with Reactor) and Checkstyle 8.24.
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
Sam Brannen
591995ecc8
Polish and revive disabled tests
...
This commit revives some previously disabled tests and converts
some usage of @Disabled to @EnabledForTestGroups(...).
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
Sam Brannen
ad6231ad29
Add missing @Override annotations
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
Juergen Hoeller
9929d75260
Adapt to Spring Framework convention for static cache field names
...
See gh-23345
5 years ago
Mark Paluch
1890e04df1
Introduce interface cache for EntityManager and Query types
...
We now reuse interfaces for EntityManager and Query classes that
are proxied through ExtendedEntityManagerCreator and SharedEntityManagerCreator.
These caches prevent excessive object allocations through
ClassUtils.getAllInterfacesForClass(…) and
ClassUtils.getAllInterfacesForClassAsSet(…).
5 years ago
Juergen Hoeller
96ea3a8924
Upgrade to Hibernate ORM 5.4.4
5 years ago
Juergen Hoeller
18bfa6b003
Consider Hibernate Query.list() as query-terminating method
...
Closes gh-23248
5 years ago
Сергей Цыпанов
1728bf17fc
Avoid unnecessary boxing where primitives can be used
...
Closes gh-23267
5 years ago
Sam Brannen
39de64bafc
Log at WARN level in case of contradicting PersistenceUnitManager setup
...
Closes gh-23257
5 years ago
Juergen Hoeller
9f92b42d69
Upgrade to Tomcat 9.0.21, Undertow 2.0.21, RxJava 2.2.9, Checkstyle 8.21, Mockito 2.28.2, Hibernate ORM 5.4.3
...
Centralizes rsocketVersion declaration in build.gradle; also includes upgrade to Reactor Dysprosium M2 proper.
6 years ago
Sebastien Deleuze
098ac0bbb8
Annotate Object#equals parameter with @Nullable
...
Closes gh-23093
6 years ago
Phillip Webb
9d74da006c
Migrate JUnit 4 assertions to AssertJ
...
Migrate all existing JUnit 4 `assert...` based assertions to AssertJ
and add a checkstyle rule to ensure they don't return.
See gh-23022
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
02850f357f
Migrate exception checking tests to use AssertJ
...
Migrate tests that use `@Test(expectedException=...)` or
`try...fail...catch` to use AssertJ's `assertThatException`
instead.
6 years ago
Sam Brannen
64819bbc1d
Clean up warnings
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