Suppress Eclipse warnings about not closed resources
Change-Id: I78e8f1d5d1df7dc77c608569cd6bdb381f5fa348
This commit is contained in:
		@@ -64,9 +64,11 @@ 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");
 | 
			
		||||
 
 | 
			
		||||
@@ -57,6 +57,7 @@ public final class IoUtil {
 | 
			
		||||
    if (!(cl instanceof URLClassLoader)) {
 | 
			
		||||
      throw noAddURL("Not loaded by URLClassLoader", null);
 | 
			
		||||
    }
 | 
			
		||||
    @SuppressWarnings("resource")
 | 
			
		||||
    URLClassLoader urlClassLoader = (URLClassLoader) cl;
 | 
			
		||||
 | 
			
		||||
    Method addURL;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user