diff options
author | Roel Spilker <r.spilker@gmail.com> | 2013-08-05 22:11:07 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2013-08-05 22:11:07 +0200 |
commit | 5deb185591904d275cb06eea85c0d739587fc738 (patch) | |
tree | 53a00744adb8d997e5f97c8f9df0b2e42928e55a /src | |
parent | deed98be16e5099af52d951fc611f86a82a42858 (diff) | |
download | lombok-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.java | 3 |
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() { |