[FIX] Issue #179

This commit is contained in:
Gravit 2019-02-24 19:45:47 +07:00
parent 637652c1c6
commit 616aa951bc
No known key found for this signature in database
GPG key ID: 061981E1E85D3216

View file

@ -9,14 +9,15 @@ public final class FileNameMatcher {
private static final String[] NO_ENTRIES = new String[0]; private static final String[] NO_ENTRIES = new String[0];
private static boolean anyMatch(String[] entries, Collection<String> path) { private static boolean anyMatch(String[] entries, Collection<String> path) {
return path.stream().anyMatch(e -> Arrays.stream(entries).anyMatch(p -> p.endsWith(e))); //return path.stream().anyMatch(e -> Arrays.stream(entries).anyMatch(p -> p.endsWith(e)));
//for(String p : path) for(String p : path)
//{ {
// for(String e : entries) for(String e : entries)
// { {
// if(p.endsWith(e)) return true; if(p.endsWith(e)) return true;
// } }
//} }
return false;
} }
// Instance // Instance