spring-boot/src/checkstyle
Andy Wilkinson 30a0ccab02 Remove use of @PostConstruct from main code
When running on Java 11 (where `@PostConstruct` is no longer part of
the JRE) and without a dependency on jakarta-annotation-api,
`@PostContruct` annotions are silently dropped. This leads to obscure and
hard-to-track down changes in the behaviour of our auto-configuration
as the `@PostConstruct`-annotated methods are not invoked.

To allow users to run on Java 11 without having jakarta-annotation-api
on the classpath, this commit removes use of `@PostConstruct` from main
code. A Checkstyle rule has also been added to prevent its usage in
main code from being reintroduced.

Closes gh-23723
2020-11-03 13:59:38 +00:00
..
checkstyle-header.txt Merge branch '1.5.x' into 2.0.x 2019-03-20 16:45:26 +00:00
checkstyle-suppressions.xml Remove use of @PostConstruct from main code 2020-11-03 13:59:38 +00:00
checkstyle.xml Remove use of @PostConstruct from main code 2020-11-03 13:59:38 +00:00
import-control.xml Use HTTPS for external links from XML files where possible 2019-03-26 13:52:17 +00:00
nohttp-checkstyle-suppressions.xml Fix checkstyle violations 2019-06-07 13:27:14 -07:00
nohttp-checkstyle.xml Merge branch '1.5.x' into 2.0.x 2019-06-07 12:34:13 -07:00
nohttp-whitelist.txt Use HTTPS when linking to groovy-lang.org 2020-05-15 16:18:23 +01:00