jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r160392 - incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/fs/local/LocalFileSystem.java
Date Thu, 07 Apr 2005 09:10:39 GMT
Author: jukka
Date: Thu Apr  7 02:10:38 2005
New Revision: 160392

URL: http://svn.apache.org/viewcvs?view=rev&rev=160392
Log:
JCR-97: Checkstyle improvements for LocalFileSystem.

Modified:
    incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/fs/local/LocalFileSystem.java

Modified: incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/fs/local/LocalFileSystem.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/fs/local/LocalFileSystem.java?view=diff&r1=160391&r2=160392
==============================================================================
--- incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/fs/local/LocalFileSystem.java
(original)
+++ incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/fs/local/LocalFileSystem.java
Thu Apr  7 02:10:38 2005
@@ -47,7 +47,11 @@
     }
 
     public String getPath() {
-        return root == null ? null : root.getPath();
+        if (root != null) {
+            return root.getPath();
+        } else {
+            return null;
+        }
     }
 
     /**
@@ -79,7 +83,11 @@
         }
         if (obj instanceof LocalFileSystem) {
             LocalFileSystem other = (LocalFileSystem) obj;
-            return (root == null ? other.root == null : root.equals(other.root));
+            if (root == null) {
+                return other.root == null;
+            } else {
+                return root.equals(other.root);
+            }
         }
         return false;
     }
@@ -391,9 +399,9 @@
             FileUtil.copy(src, dest);
             FileUtil.delete(src);
         } catch (IOException ioe) {
-	    String msg = "moving " + src.getPath() + " to " + dest.getPath() + " failed";
-	    log.debug(msg);
-	    throw new FileSystemException(msg, ioe);
+            String msg = "moving " + src.getPath() + " to " + dest.getPath() + " failed";
+            log.debug(msg);
+            throw new FileSystemException(msg, ioe);
         }
 */
     }



Mime
View raw message