Issue #3700 if a location is null then consider if there are inclusions and/or exclusions when matching a class. Signed-off-by: Greg Wilkins <gregw@webtide.com>
This commit is contained in:
parent
21857f0b81
commit
5c91e44eaf
|
@ -193,6 +193,11 @@ public class IncludeExcludeSet<T, P> implements Predicate<P>
|
|||
return !_includes.isEmpty();
|
||||
}
|
||||
|
||||
public boolean hasExcludes()
|
||||
{
|
||||
return !_excludes.isEmpty();
|
||||
}
|
||||
|
||||
public int size()
|
||||
{
|
||||
return _includes.size() + _excludes.size();
|
||||
|
|
|
@ -734,14 +734,14 @@ public class ClasspathPattern extends AbstractSet<String>
|
|||
return false;
|
||||
|
||||
URI uri = location.get();
|
||||
if (uri != null)
|
||||
{
|
||||
Boolean byLocation = locations.isIncludedAndNotExcluded(uri);
|
||||
if (Boolean.FALSE == byLocation)
|
||||
return false;
|
||||
if (uri == null)
|
||||
return locations.isEmpty() || locations.hasExcludes() && !locations.hasIncludes();
|
||||
|
||||
Boolean byLocation = locations.isIncludedAndNotExcluded(uri);
|
||||
if (Boolean.FALSE == byLocation)
|
||||
return false;
|
||||
|
||||
return Boolean.TRUE.equals(byName) || Boolean.TRUE.equals(byLocation) || !(names.hasIncludes() || locations.hasIncludes());
|
||||
|
||||
return Boolean.TRUE.equals(byName) || Boolean.TRUE.equals(byLocation) || !(names.hasIncludes() || locations.hasIncludes());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue