commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1807503 - /commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/FileSystemKey.java
Date Wed, 06 Sep 2017 16:39:34 GMT
Author: ggregory
Date: Wed Sep  6 16:39:33 2017
New Revision: 1807503

URL: http://svn.apache.org/viewvc?rev=1807503&view=rev
Log:
Update formatting to { on the same line and easier to read Javadoc.

Modified:
    commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/FileSystemKey.java

Modified: commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/FileSystemKey.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/FileSystemKey.java?rev=1807503&r1=1807502&r2=1807503&view=diff
==============================================================================
--- commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/FileSystemKey.java
(original)
+++ commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/FileSystemKey.java
Wed Sep  6 16:39:33 2017
@@ -21,8 +21,8 @@ import org.apache.commons.vfs2.FileSyste
 /**
  * Used to identify a filesystem
  */
-class FileSystemKey implements Comparable<FileSystemKey>
-{
+class FileSystemKey implements Comparable<FileSystemKey> {
+    
     private static final FileSystemOptions EMPTY_OPTIONS = new FileSystemOptions();
 
     private final Comparable<?> key;
@@ -31,31 +31,26 @@ class FileSystemKey implements Comparabl
     /**
      * Create the FS key.
      *
-     * @param key must implement Comparable, and must be self-comparable
-     * @param fileSystemOptions the required options
+     * @param key
+     *            must implement Comparable, and must be self-comparable
+     * @param fileSystemOptions
+     *            the required options
      */
-    FileSystemKey(final Comparable<?> key, final FileSystemOptions fileSystemOptions)
-    {
+    FileSystemKey(final Comparable<?> key, final FileSystemOptions fileSystemOptions)
{
         this.key = key;
-        if (fileSystemOptions != null)
-        {
+        if (fileSystemOptions != null) {
             this.fileSystemOptions = fileSystemOptions;
-        }
-        else
-        {
+        } else {
             this.fileSystemOptions = EMPTY_OPTIONS;
         }
     }
 
     @Override
-    public int compareTo(final FileSystemKey o)
-    {
+    public int compareTo(final FileSystemKey o) {
         @SuppressWarnings("unchecked") // Keys must implement comparable, and be comparable
to themselves
-        final
-        Comparable<Comparable<?>> comparable = (Comparable<Comparable<?>>)
key;
+        final Comparable<Comparable<?>> comparable = (Comparable<Comparable<?>>)
key;
         final int ret = comparable.compareTo(o.key);
-        if (ret != 0)
-        {
+        if (ret != 0) {
             // other filesystem
             return ret;
         }



Mime
View raw message