mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 03:31:15 +03:00
[FIX] Issue #179
This commit is contained in:
parent
637652c1c6
commit
616aa951bc
1 changed files with 9 additions and 8 deletions
|
@ -9,14 +9,15 @@ public final class FileNameMatcher {
|
|||
private static final String[] NO_ENTRIES = new String[0];
|
||||
|
||||
private static boolean anyMatch(String[] entries, Collection<String> path) {
|
||||
return path.stream().anyMatch(e -> Arrays.stream(entries).anyMatch(p -> p.endsWith(e)));
|
||||
//for(String p : path)
|
||||
//{
|
||||
// for(String e : entries)
|
||||
// {
|
||||
// if(p.endsWith(e)) return true;
|
||||
// }
|
||||
//}
|
||||
//return path.stream().anyMatch(e -> Arrays.stream(entries).anyMatch(p -> p.endsWith(e)));
|
||||
for(String p : path)
|
||||
{
|
||||
for(String e : entries)
|
||||
{
|
||||
if(p.endsWith(e)) return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// Instance
|
||||
|
|
Loading…
Reference in a new issue