michael-o commented on code in PR #28: URL: https://github.com/apache/maven-doap-plugin/pull/28#discussion_r1886936600
########## src/main/java/org/apache/maven/plugin/doap/DoapUtil.java: ########## @@ -688,24 +684,18 @@ private static String getLowerCaseString(I18N i18n, String key) { */ private static String getPluginVersion() { Properties pomProperties = new Properties(); - InputStream is = null; - try { - is = DoapUtil.class.getResourceAsStream( - "/META-INF/maven/org.apache.maven.plugins/" + "maven-doap-plugin/pom.properties"); + + try (InputStream is = DoapUtil.class.getResourceAsStream( Review Comment: Can this cause a NPE with automatic cleanup? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org