Sebastien Deleuze
1f28825f9d
Add more @Nullable parameters based on null usage
...
Issue: SPR-15540
2017-05-31 21:42:23 +02:00
Sebastien Deleuze
b47d713e14
Add missing @Nullable annotations on parameters
...
Issue: SPR-15540
2017-05-31 16:56:08 +02:00
Sebastien Deleuze
87598f48e4
Introduce null-safety of Spring Framework API
...
This commit introduces 2 new @Nullable and @NonNullApi
annotations that leverage JSR 305 (dormant but available via
Findbugs jsr305 dependency and already used by libraries
like OkHttp) meta-annotations to specify explicitly
null-safety of Spring Framework parameters and return values.
In order to avoid adding too much annotations, the
default is set at package level with @NonNullApi and
@Nullable annotations are added when needed at parameter or
return value level. These annotations are intended to be used
on Spring Framework itself but also by other Spring projects.
@Nullable annotations have been introduced based on Javadoc
and search of patterns like "return null;". It is expected that
nullability of Spring Framework API will be polished with
complementary commits.
In practice, this will make the whole Spring Framework API
null-safe for Kotlin projects (when KT-10942 will be fixed)
since Kotlin will be able to leverage these annotations to
know if a parameter or a return value is nullable or not. But
this is also useful for Java developers as well since IntelliJ
IDEA, for example, also understands these annotations to
generate warnings when unsafe nullable usages are detected.
Issue: SPR-15540
2017-05-27 08:57:01 +02:00
Juergen Hoeller
42d6d7ec4e
Transaction annotations on interface methods with CGLIB proxies
...
Issue: SPR-14322
2017-04-26 18:16:31 +02:00
Juergen Hoeller
4e82bf30c6
TransactionSynchronization declared with default methods
...
Issue: SPR-14432
2017-03-14 15:18:53 +01:00
Juergen Hoeller
8b741508a6
Explicit notes on transaction phase processing
...
Issue: SPR-15323
2017-03-07 13:50:01 +01:00
Stephane Nicoll
05787f314f
Update copyright header
...
Closes gh-1343
2017-03-03 09:28:56 +01:00
nkjackzhang
0e49c0e152
Remove unecessary "<<"
...
See gh-1343
2017-03-03 09:28:17 +01:00
Juergen Hoeller
2b3fb2f5cc
Polishing
2017-02-28 18:37:33 +01:00
Juergen Hoeller
d003f6614b
Tests for annotation lookups in interfaces (currently ignored for CGLIB proxies)
...
Issue: SPR-15271
Issue: SPR-14949
Issue: SPR-14322
2017-02-28 13:11:15 +01:00
Juergen Hoeller
d4a1b59b4c
Skip transaction/caching metadata retrieval for java.lang.Object methods
...
Also retrieves CacheConfig as merged annotation now, aligned with other caching annotations.
Issue: SPR-15296
2017-02-28 13:08:55 +01:00
Juergen Hoeller
0f51ff5ebc
Reset global rollback-only status when rolling back to savepoint
...
Issue: SPR-6568
2017-02-17 23:40:44 +01:00
Juergen Hoeller
e9019cd7d1
Polishing
2017-02-10 10:56:40 +01:00
Juergen Hoeller
b630c9bea7
Clear synchronization before triggering afterCompletion callbacks
...
Issue: SPR-15194
Issue: SPR-11590
2017-02-10 10:39:33 +01:00
Juergen Hoeller
acf511ac0e
Polishing
2017-02-02 20:11:06 +01:00
Juergen Hoeller
1b2dc3638f
Revisit Assert to avoid single-arg assert methods (with refined messages)
...
Issue: SPR-15196
2017-01-30 22:15:55 +01:00
Juergen Hoeller
1cb381e9a7
Consistent deprecation markers on JDK 9
2017-01-13 10:53:20 +01:00
Sam Brannen
9ed66bf2eb
Clean up warnings across code base
2017-01-07 01:54:38 +01:00
Juergen Hoeller
953bc189e7
Stronger explanation of default rollback rules
...
Issue: SPR-14994
2016-12-09 15:05:20 +01:00
Juergen Hoeller
a7ec6dc0af
ImportRegistry properly tracks excluded superclasses
...
Issue: SPR-14972
2016-12-09 15:01:21 +01:00
Juergen Hoeller
2874066a97
DataSourceTransactionManager triggers flush callbacks on registered transaction synchronizations
...
Issue: SPR-14847
2016-10-28 15:23:57 +02:00
Juergen Hoeller
52b029d71d
DefaultTransactionAttribute stores descriptor (method identification)
...
Issue: SPR-14760
2016-10-21 12:23:13 +02:00
Philippe Marschall
ae5b0c6fb5
Replace J2EE with Java EE
...
String with version 5 the name of Java Platform, Enterprise Edition
changed from J2EE to Java EE. However a lot of the documentation still
uses the term J2EE.
This commit includes the following changes:
* replace J2EE with Java EE where appropriate
This is not a blind search and replace. The following occurrences
remain unchanged:
* references to old J2EE releases, most notably 1.3 and 1.4.
* references to "Expert One-On-One J2EE Design and Development"
* references to "Core J2EE patterns"
* XML namespaces
* package names
Issue: SPR-14811
See gh-1206
2016-10-15 11:49:00 +03:00
Juergen Hoeller
eafaaa5cb8
Polishing
2016-10-12 17:11:04 +02:00
Juergen Hoeller
ce42ed4d44
Polishing
2016-09-13 21:58:41 +02:00
Juergen Hoeller
ab9fea6b8d
Polishing
...
(cherry picked from commit 3767092 )
2016-08-31 02:08:31 +02:00
Juergen Hoeller
58fa63fdd1
ApplicationListenerMethodAdapter resolves order on construction
...
Issue: SPR-14642
2016-08-30 20:50:02 +02:00
Juergen Hoeller
bbc85ea466
Refined exception message
...
Issue: SPR-14609
(cherry picked from commit ab68673 )
2016-08-24 15:08:12 +02:00
Juergen Hoeller
951ac5ea4f
TransactionAspectSupport stores given PlatformTransactionManager instance as strong reference
...
Issue: SPR-14609
2016-08-24 14:31:02 +02:00
Juergen Hoeller
02374d7450
TransactionAspectSupport avoids hard references to transaction manager beans
...
Issue: SPR-14511
2016-07-26 21:29:34 +02:00
Juergen Hoeller
e03dea1d64
Polishing
2016-07-26 17:15:19 +02:00
Juergen Hoeller
e4def2f55d
Aligned ConcurrentMap declaration with 4.3.x branch
2016-07-26 00:54:53 +02:00
Juergen Hoeller
ae28815886
Polishing
2016-07-25 23:27:06 +02:00
Juergen Hoeller
88fcd0a2ed
Framework build compatible with JDK 9 (tests running against java.base module)
...
Issue: SPR-13344
2016-07-19 19:37:34 +02:00
Juergen Hoeller
aaac199e8b
Consistently use constructor-based instantiation instead of Class.newInstance / BeanUtils.instantiate
...
Issue: SPR-14486
2016-07-19 19:21:06 +02:00
Juergen Hoeller
dc1664939c
Javadoc fixes and pruning of outdated references
2016-07-15 22:12:11 +02:00
Juergen Hoeller
04e9c2bf0c
Aspect actually applies in PersistenceExceptionTranslationPostProcessorTests
...
Issue: SPR-14457
2016-07-13 22:31:41 +02:00
Stephane Nicoll
e4b0486c5a
Add @FunctionalInterface on candidate interfaces
...
Issue: SPR-14432
2016-07-06 14:32:13 +02:00
Juergen Hoeller
355c6f0715
Upgrade to JMS 2.0 and JCA 1.7
...
Issue: SPR-13793
2016-07-05 22:18:19 +02:00
Juergen Hoeller
bc2c22d51e
Streamline XML namespace support towards unversioned schemas
...
This commit also removes support code for outdated options which were only available in older schema versions.
Issue: SPR-13499
2016-07-05 20:50:03 +02:00
Sam Brannen
1391248ea6
Introduce log4j 2 for Spring's test suite
...
This commit adds a test runtime dependency on log4j 2 for every project
and migrates all log4j.properties files to log4j2-test.xml files.
Issue: SPR-14431
2016-07-05 19:19:09 +02:00
Stephane Nicoll
00d2606b00
Explicit type can be replaced by <>
...
Issue: SPR-13188
2016-07-05 17:00:34 +02:00
Juergen Hoeller
0fc0ce78ae
Drop deprecated dependencies on Log4j, JRuby, JExcel, Burlap, Commons Pool/DBCP
...
This commit also removes outdated support classes for Oracle, GlassFish, JBoss.
Issue: SPR-14429
2016-07-05 15:46:53 +02:00
Juergen Hoeller
d341624e91
Drop JDO support
...
Issue: SPR-14130
2016-07-04 23:34:48 +02:00
Stephane Nicoll
037746da44
Polish
...
Closes gh-1097
2016-07-01 14:26:48 +02:00
Juergen Hoeller
66ec1c1618
Add missing package-info files for common packages
...
Issue: SPR-14420
2016-06-30 21:39:06 +02:00
nkjackzhang
9656015d26
Fix typo in javadoc
...
See gh-1080
2016-06-16 12:11:14 +02:00
Juergen Hoeller
a9fda3e7e2
Defensive catching of any Throwable subclasses instead of just Error
...
Issue: SPR-14329
2016-06-04 00:17:20 +02:00
Juergen Hoeller
1be544f8fa
JtaTransactionManager explicitly resets transaction timeout after completion
...
Issue: SPR-14239
2016-05-03 13:30:51 +02:00
Juergen Hoeller
f83cbff543
Consistent SmartLifecycle implementations
...
Issue: SPR-14233
2016-05-02 13:01:44 +02:00