sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From romb...@apache.org
Subject svn commit: r1616114 - /sling/trunk/bundles/extensions/discovery/impl/src/main/java/org/apache/sling/discovery/impl/topology/connector/ConnectorRegistryImpl.java
Date Wed, 06 Aug 2014 07:32:07 GMT
Author: rombert
Date: Wed Aug  6 07:32:06 2014
New Revision: 1616114

URL: http://svn.apache.org/r1616114
Log:
SLING-3823 - ConnectorRegistryImpl uses java.net.URL.equals

Use URL.toExternalForm() to compare string representations of the URLs.

Modified:
    sling/trunk/bundles/extensions/discovery/impl/src/main/java/org/apache/sling/discovery/impl/topology/connector/ConnectorRegistryImpl.java

Modified: sling/trunk/bundles/extensions/discovery/impl/src/main/java/org/apache/sling/discovery/impl/topology/connector/ConnectorRegistryImpl.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/extensions/discovery/impl/src/main/java/org/apache/sling/discovery/impl/topology/connector/ConnectorRegistryImpl.java?rev=1616114&r1=1616113&r2=1616114&view=diff
==============================================================================
--- sling/trunk/bundles/extensions/discovery/impl/src/main/java/org/apache/sling/discovery/impl/topology/connector/ConnectorRegistryImpl.java
(original)
+++ sling/trunk/bundles/extensions/discovery/impl/src/main/java/org/apache/sling/discovery/impl/topology/connector/ConnectorRegistryImpl.java
Wed Aug  6 07:32:06 2014
@@ -85,7 +85,7 @@ public class ConnectorRegistryImpl imple
             for (Iterator<Entry<String, TopologyConnectorClient>> it = outgoingClientsMap
                     .entrySet().iterator(); it.hasNext();) {
                 Entry<String, TopologyConnectorClient> entry = it.next();
-                if (entry.getValue().getConnectorUrl().equals(connectorUrl)) {
+                if (entry.getValue().getConnectorUrl().toExternalForm().equals(connectorUrl.toExternalForm()))
{
                     it.remove();
                     logger.info("registerOutgoingConnection: re-registering connector: "+connectorUrl);
                 }



Mime
View raw message