Author: ron.sigal(a)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 += "&";
Show replies by date