#vulnerable code 
                              private List<JSSourceFile> getDefaultExterns() {
    try {
      InputStream input = Compiler.class.getResourceAsStream(
          "/externs.zip");
      ZipInputStream zip = new ZipInputStream(input);
      List<JSSourceFile> externs = Lists.newLinkedList();

      for (ZipEntry entry; (entry = zip.getNextEntry()) != null; ) {
        LimitInputStream entryStream =
            new LimitInputStream(zip, entry.getSize());
        externs.add(
            JSSourceFile.fromInputStream(entry.getName(), entryStream));
      }

      return externs;
    } catch (IOException e) {
      throw new BuildException(e);
    }
  } 
                            #location 12 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                              private List<JSSourceFile> getDefaultExterns() {
    try {
      return CommandLineRunner.getDefaultExterns();
    } catch (IOException e) {
      throw new BuildException(e);
    }
  }