2 Replies Latest reply on Mar 28, 2008 6:50 PM by Ales Justin

    VFS::visit on a leaf

    Ales Justin Master

      With idea of removing IllegalStateException for leaves:
      - http://jira.jboss.com/jira/browse/JBVFS-10
      This should probably also affect visit method:

       public void visit(VirtualFileVisitor visitor) throws IOException
       if (isLeaf())
       throw new IllegalStateException("File cannot contain children: " + this);
       getVFS().visit(this, visitor);

      With just ignoring the visit, or not?