Suppressed warning about not closing the jar file since we use it for loading classes.

This commit is contained in:
Roel Spilker committed 2013-08-05 22:11:07 +02:00
1 parent deed98be16
commit 5deb185591
1 file changed
+3
@@ -84,6 +84,9 @@ public class DelombokApp extends LombokApp {
return null;
}
@SuppressWarnings("resource")
// The jar file is used for the lifetime of the classLoader, therefore the lifetime of delombok.
// Since we only read from it, not closing it should not be a problem.
final JarFile toolsJarFile = new JarFile(toolsJar);
ClassLoader loader = new ClassLoader() {