directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r433523 - in /directory/sandbox/trustin/mina-0.8-mvnize/src/java/org/apache/mina/protocol/vmpipe: AnonymousVmPipeAddress.java VmPipeConnector.java
Date Tue, 22 Aug 2006 05:09:52 GMT
Author: trustin
Date: Mon Aug 21 22:09:52 2006
New Revision: 433523

URL: http://svn.apache.org/viewvc?rev=433523&view=rev
Log:
Applied the changes in branches/mina/0.8


Modified:
    directory/sandbox/trustin/mina-0.8-mvnize/src/java/org/apache/mina/protocol/vmpipe/AnonymousVmPipeAddress.java
    directory/sandbox/trustin/mina-0.8-mvnize/src/java/org/apache/mina/protocol/vmpipe/VmPipeConnector.java

Modified: directory/sandbox/trustin/mina-0.8-mvnize/src/java/org/apache/mina/protocol/vmpipe/AnonymousVmPipeAddress.java
URL: http://svn.apache.org/viewvc/directory/sandbox/trustin/mina-0.8-mvnize/src/java/org/apache/mina/protocol/vmpipe/AnonymousVmPipeAddress.java?rev=433523&r1=433522&r2=433523&view=diff
==============================================================================
--- directory/sandbox/trustin/mina-0.8-mvnize/src/java/org/apache/mina/protocol/vmpipe/AnonymousVmPipeAddress.java
(original)
+++ directory/sandbox/trustin/mina-0.8-mvnize/src/java/org/apache/mina/protocol/vmpipe/AnonymousVmPipeAddress.java
Mon Aug 21 22:09:52 2006
@@ -15,27 +15,21 @@
 {
     private static final long serialVersionUID = 3258135768999475512L;
 
-	static final AnonymousVmPipeAddress INSTANCE = new AnonymousVmPipeAddress();
-
     /**
      * Creates a new instance with the specifid port number.
      */
-    private AnonymousVmPipeAddress()
+    public AnonymousVmPipeAddress()
     {
     }
 
     public int hashCode()
     {
-        return 1432482932;
+        return System.identityHashCode( this );
     }
 
     public boolean equals( Object o )
     {
-        if( o == null )
-            return false;
-        if( this == o )
-            return true;
-        return o instanceof AnonymousVmPipeAddress;
+	return this == o;
     }
 
     public int compareTo( Object o )
@@ -45,6 +39,6 @@
 
     public String toString()
     {
-        return "vm:anonymous";
+        return "vm:anonymous(" + hashCode() + ')';
     }
 }

Modified: directory/sandbox/trustin/mina-0.8-mvnize/src/java/org/apache/mina/protocol/vmpipe/VmPipeConnector.java
URL: http://svn.apache.org/viewvc/directory/sandbox/trustin/mina-0.8-mvnize/src/java/org/apache/mina/protocol/vmpipe/VmPipeConnector.java?rev=433523&r1=433522&r2=433523&view=diff
==============================================================================
--- directory/sandbox/trustin/mina-0.8-mvnize/src/java/org/apache/mina/protocol/vmpipe/VmPipeConnector.java
(original)
+++ directory/sandbox/trustin/mina-0.8-mvnize/src/java/org/apache/mina/protocol/vmpipe/VmPipeConnector.java
Mon Aug 21 22:09:52 2006
@@ -68,7 +68,7 @@
             throw new IOException( "Endpoint unavailable: " + address );
 
         VmPipeSession session = new VmPipeSession( new Object(), // lock
-                                                   AnonymousVmPipeAddress.INSTANCE,
+                                                   new AnonymousVmPipeAddress(),
                                                    filterChain,
                                                    protocolProvider.getHandler(),
                                                    entry );



Mime
View raw message