Author: tv
Date: Tue Jan  6 18:57:30 2015
New Revision: 1649909

URL: http://svn.apache.org/r1649909
Log:
Don't use stubs

Modified:
    
commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/auxiliary/remote/RemoteCacheListener.java

Modified: 
commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/auxiliary/remote/RemoteCacheListener.java
URL: 
http://svn.apache.org/viewvc/commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/auxiliary/remote/RemoteCacheListener.java?rev=1649909&r1=1649908&r2=1649909&view=diff
==============================================================================
--- 
commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/auxiliary/remote/RemoteCacheListener.java
 (original)
+++ 
commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/auxiliary/remote/RemoteCacheListener.java
 Tue Jan  6 18:57:30 2015
@@ -65,17 +65,10 @@ public class RemoteCacheListener<K, V>
         super( irca, cacheMgr );
 
         // Export this remote object to make it available to receive incoming
-        // calls, using an anonymous port unless the local port is specified.
+        // calls.
         try
         {
-            if ( irca.getLocalPort() > 0 )
-            {
-                UnicastRemoteObject.exportObject( this, irca.getLocalPort() );
-            }
-            else
-            {
-                UnicastRemoteObject.exportObject( this );
-            }
+            UnicastRemoteObject.exportObject( this, irca.getLocalPort() );
         }
         catch ( RemoteException ex )
         {


Reply via email to