mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 12:16:49 +00:00
Suppressed warning about not closing the jar file since we use it for loading classes.
This commit is contained in:
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() {
|
||||
|
||||
Reference in new issue
Block a user