private void removeFile()

in modules/vfs-class-loader/src/main/java/org/apache/accumulo/classloader/vfs/AccumuloVFSClassLoader.java [453:465]


  private void removeFile(FileObject file) throws RuntimeException {
    try {
      fileMonitor.ifPresent(u -> {
        u.getMonitor().removeFile(file);
        // VFS DefaultFileMonitor does not remove listener from the file on remove
        file.getFileSystem().removeListener(file, this);
      });
    } catch (RuntimeException re) {
      printError("Error removing file from VFS cache: " + file.toString());
      re.printStackTrace();
      throw re;
    }
  }