[jboss-remoting-commits] JBoss Remoting SVN: r5861 - remoting2/branches/2.x/src/main/org/jboss/remoting.

jboss-remoting-commits at lists.jboss.org jboss-remoting-commits at lists.jboss.org
Tue May 11 09:10:00 EDT 2010


Author: ron.sigal at jboss.com
Date: 2010-05-11 09:09:59 -0400 (Tue, 11 May 2010)
New Revision: 5861

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

Modified: remoting2/branches/2.x/src/main/org/jboss/remoting/InvokerLocator.java
===================================================================
--- remoting2/branches/2.x/src/main/org/jboss/remoting/InvokerLocator.java	2010-05-11 02:28:29 UTC (rev 5860)
+++ remoting2/branches/2.x/src/main/org/jboss/remoting/InvokerLocator.java	2010-05-11 13:09:59 UTC (rev 5861)
@@ -921,7 +921,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