aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r1221349 - in /aries/branches/0.2-incubating-RCx/application/application-obr-resolver/src/main/java/org/apache/aries/application/resolver/obr/impl: RequirementImpl.java ResourceWrapper.java
Date Tue, 20 Dec 2011 17:18:25 GMT
Author: gawor
Date: Tue Dec 20 17:18:25 2011
New Revision: 1221349

URL: http://svn.apache.org/viewvc?rev=1221349&view=rev
Log:
add toString() to make things a bit easier to debug and a small perf. improvement

Modified:
    aries/branches/0.2-incubating-RCx/application/application-obr-resolver/src/main/java/org/apache/aries/application/resolver/obr/impl/RequirementImpl.java
    aries/branches/0.2-incubating-RCx/application/application-obr-resolver/src/main/java/org/apache/aries/application/resolver/obr/impl/ResourceWrapper.java

Modified: aries/branches/0.2-incubating-RCx/application/application-obr-resolver/src/main/java/org/apache/aries/application/resolver/obr/impl/RequirementImpl.java
URL: http://svn.apache.org/viewvc/aries/branches/0.2-incubating-RCx/application/application-obr-resolver/src/main/java/org/apache/aries/application/resolver/obr/impl/RequirementImpl.java?rev=1221349&r1=1221348&r2=1221349&view=diff
==============================================================================
--- aries/branches/0.2-incubating-RCx/application/application-obr-resolver/src/main/java/org/apache/aries/application/resolver/obr/impl/RequirementImpl.java
(original)
+++ aries/branches/0.2-incubating-RCx/application/application-obr-resolver/src/main/java/org/apache/aries/application/resolver/obr/impl/RequirementImpl.java
Tue Dec 20 17:18:25 2011
@@ -78,6 +78,6 @@ public class RequirementImpl implements 
 
   public boolean isSatisfied(Capability capability)
   {
-    return filter.match(new MapToDictionary(capability.getPropertiesAsMap()));
+    return name.equals(capability.getName()) && filter.match(new MapToDictionary(capability.getPropertiesAsMap()));
   }
 }

Modified: aries/branches/0.2-incubating-RCx/application/application-obr-resolver/src/main/java/org/apache/aries/application/resolver/obr/impl/ResourceWrapper.java
URL: http://svn.apache.org/viewvc/aries/branches/0.2-incubating-RCx/application/application-obr-resolver/src/main/java/org/apache/aries/application/resolver/obr/impl/ResourceWrapper.java?rev=1221349&r1=1221348&r2=1221349&view=diff
==============================================================================
--- aries/branches/0.2-incubating-RCx/application/application-obr-resolver/src/main/java/org/apache/aries/application/resolver/obr/impl/ResourceWrapper.java
(original)
+++ aries/branches/0.2-incubating-RCx/application/application-obr-resolver/src/main/java/org/apache/aries/application/resolver/obr/impl/ResourceWrapper.java
Tue Dec 20 17:18:25 2011
@@ -81,4 +81,7 @@ public class ResourceWrapper implements 
         return false;
     }
 
+    public String toString() {
+        return resource.toString();
+    }
 }



Mime
View raw message