You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2021/11/27 15:30:27 UTC

[commons-vfs] 01/02: FileSystemOptions implements Comparable.

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-vfs.git

commit a429e0924c2b22308467e7f63f888bc22bce7c3c
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sat Nov 27 09:59:31 2021 -0500

    FileSystemOptions implements Comparable.
    
    The compareTo() method was already implemented.
---
 .../src/main/java/org/apache/commons/vfs2/FileSystemOptions.java       | 3 ++-
 src/changes/changes.xml                                                | 3 +++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileSystemOptions.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileSystemOptions.java
index da1f72c..c90a0f1 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileSystemOptions.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileSystemOptions.java
@@ -44,7 +44,7 @@ import java.util.TreeMap;
  * @see org.apache.commons.vfs2.provider.zip.ZipFileSystemConfigBuilder
  *
  */
-public final class FileSystemOptions implements Cloneable {
+public final class FileSystemOptions implements Cloneable, Comparable<FileSystemOptions> {
 
     /** The options */
     private final Map<FileSystemOptionKey, Object> options;
@@ -134,6 +134,7 @@ public final class FileSystemOptions implements Cloneable {
         return options.containsKey(key);
     }
 
+    @Override
     public int compareTo(final FileSystemOptions other) {
         if (this == other) {
             // the same instance
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index f4dcfd9..cd307e1 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -87,6 +87,9 @@ The <action> type attribute can be add,update,fix,remove.
       <action type="add" dev="ggregory" due-to="Gary Gregory">
         Add TrueFileFilter.INSTANCE and deprecate TrueFileFilter.TRUE.
       </action>
+      <action type="add" dev="ggregory" due-to="Gary Gregory">
+        FileSystemOptions implements Comparable.
+      </action>
       <!-- UDPATE -->
       <action type="update" dev="ggregory" due-to="Dependabot">
         Bump jakarta.mail from 1.6.7 to 2.0.1 #200.