aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tjwat...@apache.org
Subject svn commit: r1779531 - /aries/trunk/subsystem/subsystem-core/src/main/java/org/apache/aries/subsystem/core/internal/ResolveContext.java
Date Thu, 19 Jan 2017 21:53:39 GMT
Author: tjwatson
Date: Thu Jan 19 21:53:39 2017
New Revision: 1779531

URL: http://svn.apache.org/viewvc?rev=1779531&view=rev
Log:
[ARIES-1667] findCandidates for already resolved resources is slow

Change-Id: I0447eee596bb29d136a609102e8906becde5f825
Signed-off-by: Thomas Watson <tjwatson@us.ibm.com>

Modified:
    aries/trunk/subsystem/subsystem-core/src/main/java/org/apache/aries/subsystem/core/internal/ResolveContext.java

Modified: aries/trunk/subsystem/subsystem-core/src/main/java/org/apache/aries/subsystem/core/internal/ResolveContext.java
URL: http://svn.apache.org/viewvc/aries/trunk/subsystem/subsystem-core/src/main/java/org/apache/aries/subsystem/core/internal/ResolveContext.java?rev=1779531&r1=1779530&r2=1779531&view=diff
==============================================================================
--- aries/trunk/subsystem/subsystem-core/src/main/java/org/apache/aries/subsystem/core/internal/ResolveContext.java
(original)
+++ aries/trunk/subsystem/subsystem-core/src/main/java/org/apache/aries/subsystem/core/internal/ResolveContext.java
Thu Jan 19 21:53:39 2017
@@ -130,8 +130,9 @@ public class ResolveContext extends org.
 	}
 	
 	private void processWire(Wire wire, Requirement requirement, List<Capability> capabilities)
{
-		Capability capability = wire.getCapability();
-		processCapability(capability, requirement, capabilities);
+		if (requirement.equals(wire.getRequirement())) {
+			capabilities.add(wire.getCapability());
+		}
 	}
 	
 	private void processCapability(Capability capability, Requirement requirement, List<Capability>
capabilities) {



Mime
View raw message