[jboss-cvs] JBossAS SVN: r87661 - in projects/vfs/trunk/src/main/java/org/jboss/virtual: spi and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Apr 22 03:14:13 EDT 2009


Author: alesj
Date: 2009-04-22 03:14:13 -0400 (Wed, 22 Apr 2009)
New Revision: 87661

Modified:
   projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/AbstractVFSContext.java
   projects/vfs/trunk/src/main/java/org/jboss/virtual/spi/VFSContext.java
Log:
! --> false, javadocs

Modified: projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/AbstractVFSContext.java
===================================================================
--- projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/AbstractVFSContext.java	2009-04-22 07:08:26 UTC (rev 87660)
+++ projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/AbstractVFSContext.java	2009-04-22 07:14:13 UTC (rev 87661)
@@ -359,7 +359,7 @@
 
          // Recurse when asked
          VirtualFile file = child.getVirtualFile();
-         if ( isLeaf == false && recurseFilter != null && recurseFilter.accepts(file))
+         if (isLeaf == false && recurseFilter != null && recurseFilter.accepts(file))
          {
             try
             {
@@ -426,7 +426,7 @@
          if (this == o)
             return true;
 
-         if (!(o instanceof TempInfoKey))
+         if (o instanceof TempInfoKey == false)
             return false;
 
          TempInfoKey other = (TempInfoKey)o;
@@ -456,7 +456,7 @@
       while (iter.hasNext())
       {
          Entry<TempInfoKey, TempInfo> entry = iter.next();
-         if (! entry.getKey().originalPath.equals(path))
+         if (entry.getKey().originalPath.equals(path) == false)
             return null;
 
          TempInfo value = entry.getValue();
@@ -499,7 +499,7 @@
       {
          Entry<TempInfoKey, TempInfo> entry = iter.next();
 
-         if (! entry.getKey().originalPath.startsWith(path))
+         if (entry.getKey().originalPath.startsWith(path) == false)
             break;
 
          TempInfo ti = entry.getValue();
@@ -520,9 +520,11 @@
          }
          iter.remove();
       }
+
       if (trace)
+      {
          log.trace("Removing temp info for path: '" + path + "', temps: " + info);
-
+      }
    }
 
    public Iterable<TempInfo> getTempInfos()

Modified: projects/vfs/trunk/src/main/java/org/jboss/virtual/spi/VFSContext.java
===================================================================
--- projects/vfs/trunk/src/main/java/org/jboss/virtual/spi/VFSContext.java	2009-04-22 07:08:26 UTC (rev 87660)
+++ projects/vfs/trunk/src/main/java/org/jboss/virtual/spi/VFSContext.java	2009-04-22 07:14:13 UTC (rev 87661)
@@ -156,6 +156,7 @@
     *
     * Ex. if there is /a/b, /a/b/c, and /a/b/c/d, you get /a/b.
     *
+    * @param path the path to match
     * @return the furthest parent
     */
    TempInfo getFurthestParentTemp(String path);




More information about the jboss-cvs-commits mailing list