aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/delombok/lombok/delombok/DelombokApp.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/delombok/lombok/delombok/DelombokApp.java b/src/delombok/lombok/delombok/DelombokApp.java
index 90a7b55e..e0d6ef1c 100644
--- a/src/delombok/lombok/delombok/DelombokApp.java
+++ b/src/delombok/lombok/delombok/DelombokApp.java
@@ -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() {