mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-29 12:38:24 +00:00
Avoid unnecessary check for resource nullness if the resource is known to be non-null; put resource closing code in a method that is shared by multiple try-with-resources. Reviewed-by: darcy, mcimadamore, vromero