Author: pauls Date: Thu Aug 3 22:06:09 2017 New Revision: 1804050 URL: http://svn.apache.org/viewvc?rev=1804050&view=rev Log: Use the directives and not the attributes to lookup filters for requirments in Matcher.
Modified: sling/whiteboard/cziegeler/feature-support/src/main/java/org/apache/sling/feature/support/util/CapabilityMatcher.java Modified: sling/whiteboard/cziegeler/feature-support/src/main/java/org/apache/sling/feature/support/util/CapabilityMatcher.java URL: http://svn.apache.org/viewvc/sling/whiteboard/cziegeler/feature-support/src/main/java/org/apache/sling/feature/support/util/CapabilityMatcher.java?rev=1804050&r1=1804049&r2=1804050&view=diff ============================================================================== --- sling/whiteboard/cziegeler/feature-support/src/main/java/org/apache/sling/feature/support/util/CapabilityMatcher.java (original) +++ sling/whiteboard/cziegeler/feature-support/src/main/java/org/apache/sling/feature/support/util/CapabilityMatcher.java Thu Aug 3 22:06:09 2017 @@ -497,7 +497,7 @@ public class CapabilityMatcher public static boolean matches(Capability capability, Requirement requirement) { if (requirement.getNamespace().equals(capability.getNamespace())) { - String filter = (String) requirement.getAttributes().get(Constants.FILTER_DIRECTIVE); + String filter = (String) requirement.getDirectives().get(Constants.FILTER_DIRECTIVE); if (filter != null) { return matches(capability, SimpleFilter.parse(filter)); }