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

    VFS::visit on a leaf

    alesj

      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?