diff --git a/src/main/java/com/brianmcmichael/sagu/SAGUUtils.java b/src/main/java/com/brianmcmichael/sagu/SAGUUtils.java index 224ccb6..5dc193c 100644 --- a/src/main/java/com/brianmcmichael/sagu/SAGUUtils.java +++ b/src/main/java/com/brianmcmichael/sagu/SAGUUtils.java @@ -29,8 +29,7 @@ private SAGUUtils() { */ static String loadVersionNumber() { final Properties properties = new Properties(); - final InputStream resourceIS = SAGU.class.getResourceAsStream("/version.properties"); - try { + try(final InputStream resourceIS = SAGU.class.getResourceAsStream("/version.properties")) { properties.load(resourceIS); } catch (IOException e) { e.printStackTrace();