Optional.orElseThrow()
Supplier
示例:
optional.orElseThrow(() -> { throw new RuntimeException(); });
在应用快速修复后:
optional.orElseThrow(() -> new RuntimeException());
2023.1 最新变化