aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2013-08-05 22:11:07 +0200
committerRoel Spilker <r.spilker@gmail.com>2013-08-05 22:11:07 +0200
commit5deb185591904d275cb06eea85c0d739587fc738 (patch)
tree53a00744adb8d997e5f97c8f9df0b2e42928e55a /src
parentdeed98be16e5099af52d951fc611f86a82a42858 (diff)
downloadlombok-5deb185591904d275cb06eea85c0d739587fc738.tar.gz
lombok-5deb185591904d275cb06eea85c0d739587fc738.tar.bz2
lombok-5deb185591904d275cb06eea85c0d739587fc738.zip
Suppressed warning about not closing the jar file since we use it for loading classes.
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() {