You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by im...@apache.org on 2005/09/09 18:42:47 UTC
svn commit: r279813 - in /jakarta/commons/proper/vfs/trunk:
RELEASE_NOTES.txt src/java/org/apache/commons/vfs/FileSystemOptions.java
Author: imario
Date: Fri Sep 9 09:42:40 2005
New Revision: 279813
URL: http://svn.apache.org/viewcvs?rev=279813&view=rev
Log:
fix: avoid creation of filesystem if they use the same options
Thanks to Jens Viebig for reporting it
Modified:
jakarta/commons/proper/vfs/trunk/RELEASE_NOTES.txt
jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/FileSystemOptions.java
Modified: jakarta/commons/proper/vfs/trunk/RELEASE_NOTES.txt
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/vfs/trunk/RELEASE_NOTES.txt?rev=279813&r1=279812&r2=279813&view=diff
==============================================================================
--- jakarta/commons/proper/vfs/trunk/RELEASE_NOTES.txt (original)
+++ jakarta/commons/proper/vfs/trunk/RELEASE_NOTES.txt Fri Sep 9 09:42:40 2005
@@ -1,7 +1,7 @@
2005-
-internals:
-notify which child was added or deleted
+filesystems:
+fix: avoid creation of filesystem if they use the same options
threading:
Modified: jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/FileSystemOptions.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/FileSystemOptions.java?rev=279813&r1=279812&r2=279813&view=diff
==============================================================================
--- jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/FileSystemOptions.java (original)
+++ jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/FileSystemOptions.java Fri Sep 9 09:42:40 2005
@@ -55,6 +55,39 @@
return name.compareTo(k.name);
}
+
+ public boolean equals(Object o)
+ {
+ if (this == o)
+ {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass())
+ {
+ return false;
+ }
+
+ final FileSystemOptionKey that = (FileSystemOptionKey) o;
+
+ if (!fileSystemClass.equals(that.fileSystemClass))
+ {
+ return false;
+ }
+ if (!name.equals(that.name))
+ {
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode()
+ {
+ int result;
+ result = fileSystemClass.hashCode();
+ result = 29 * result + name.hashCode();
+ return result;
+ }
}
public FileSystemOptions()
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org