Remove unneeded @SuppressWarnings("resource")
Change-Id: Ief5d5536fb34e55dfb14e3977f59b23823b2d132 Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
@@ -64,11 +64,9 @@ public class InitPluginStepsLoader {
|
||||
|
||||
private InitStep loadInitStep(File jar) {
|
||||
try {
|
||||
@SuppressWarnings("resource")
|
||||
ClassLoader pluginLoader =
|
||||
new URLClassLoader(new URL[] {jar.toURI().toURL()},
|
||||
InitPluginStepsLoader.class.getClassLoader());
|
||||
@SuppressWarnings("resource")
|
||||
JarFile jarFile = new JarFile(jar);
|
||||
Attributes jarFileAttributes = jarFile.getManifest().getMainAttributes();
|
||||
String initClassName = jarFileAttributes.getValue("Gerrit-InitStep");
|
||||
|
Reference in New Issue
Block a user