-
Enhancement
-
Resolution: Fixed
-
P3
-
22
-
None
While SymbolLookup correctly uses an Optional return to denote whether a symbol has been found by the lookup or not (which enables composition of symbol lookups), many clients end up just calling Optional::get, or Optional::orElseThrow() on the result.
As such, it would be better if SymbolLookup provided a default method, namely SymbolLookup::get which calls Optional::get on behalf of the user.
As such, it would be better if SymbolLookup provided a default method, namely SymbolLookup::get which calls Optional::get on behalf of the user.
- csr for
-
JDK-8330340 Add shortcut to SymbolLookup::find
- Closed