Closed
Description
Summary
While some prefer the readability of using the Optional API, the GC overhead of creating additional objects (including intermediate objects) can cause significant decrease in performance There are some simple benchmarks that illustrate the problem.
We should replace Optional usage with null checks throughout Spring Security's code base.
Related gh-7154