[jboss-remoting-commits] JBoss Remoting SVN: r5866 - remoting2/branches/2.2/src/main/org/jboss/remoting.

jboss-remoting-commits at lists.jboss.org jboss-remoting-commits at lists.jboss.org
Tue May 11 22:55:32 EDT 2010


Author: ron.sigal at jboss.com
Date: 2010-05-11 22:55:31 -0400 (Tue, 11 May 2010)
New Revision: 5866

Modified:
   remoting2/branches/2.2/src/main/org/jboss/remoting/InvokerLocator.java
Log:
JBREM-1225: Avoids extraneous '=' when reconstructing InvokerLocator.

Modified: remoting2/branches/2.2/src/main/org/jboss/remoting/InvokerLocator.java
===================================================================
--- remoting2/branches/2.2/src/main/org/jboss/remoting/InvokerLocator.java	2010-05-11 13:20:24 UTC (rev 5865)
+++ remoting2/branches/2.2/src/main/org/jboss/remoting/InvokerLocator.java	2010-05-12 02:55:31 UTC (rev 5866)
@@ -300,7 +300,14 @@
          {
             String key = (String) iter.next();
             String val = (String) parameters.get(key);
-            uri += key + "=" + val;
+            if ("".equals(val))
+            {
+               uri += key;  
+            }
+            else
+            {
+               uri += key + "=" + val;  
+            }
             if(iter.hasNext())
             {
                uri += "&";



More information about the jboss-remoting-commits mailing list