[jboss-cvs] JBossAS SVN: r81096 - projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/zip.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sat Nov 15 16:14:27 EST 2008


Author: alesj
Date: 2008-11-15 16:14:26 -0500 (Sat, 15 Nov 2008)
New Revision: 81096

Modified:
   projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/zip/ZipEntryContext.java
Log:
javadocs

Modified: projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/zip/ZipEntryContext.java
===================================================================
--- projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/zip/ZipEntryContext.java	2008-11-15 21:10:03 UTC (rev 81095)
+++ projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/zip/ZipEntryContext.java	2008-11-15 21:14:26 UTC (rev 81096)
@@ -87,6 +87,7 @@
  * {@link org.jboss.virtual.plugins.context.jar.JarContext}.
  *
  * @author <a href="strukelj at parsek.net">Marko Strukelj</a>
+ * @author <a href="ales.justin at jboss.org">Ales Justin</a>
  * @version $Revision: 1.0 $
  */
 public class ZipEntryContext extends AbstractVFSContext
@@ -308,7 +309,7 @@
     *
     * @param is the input stream
     * @param relative relative path
-    * @param urlInfo
+    * @param urlInfo url info
     * @return zip wrapper instance
     * @throws IOException for any error
     */
@@ -725,13 +726,17 @@
       return Collections.emptyList();
    }
 
+   /**
+    * Do delete.
+    *
+    * @param handler the zip entry handler
+    * @param gracePeriod the grace period
+    * @return true if delete succeeded
+    * @throws IOException for any error
+    */
    public boolean delete(ZipEntryHandler handler, int gracePeriod) throws IOException
    {
-      if (getRoot().equals(handler))
-      {
-         return zipSource.delete(gracePeriod);
-      }
-      return false;
+      return getRoot().equals(handler) && zipSource.delete(gracePeriod);
    }
 
    /**
@@ -999,7 +1004,9 @@
    }
 
    /**
-    *  Get RealURL corresponding to root handler
+    * Get RealURL corresponding to root handler
+    *
+    * @return the real url
     */
    public URL getRealURL()
    {




More information about the jboss-cvs-commits mailing list