mirror of
https://github.com/apache/cordova-android.git
synced 2025-03-01 22:49:39 +08:00
refactor: java 5 migration aid - use for loop
This commit is contained in:
parent
f9bf8a14f8
commit
ad3aa4b134
@ -157,9 +157,7 @@ public class AllowList {
|
||||
|
||||
Uri parsedUri = Uri.parse(uri);
|
||||
// Look for match in allow list
|
||||
Iterator<URLPattern> pit = allowList.iterator();
|
||||
while (pit.hasNext()) {
|
||||
URLPattern p = pit.next();
|
||||
for (URLPattern p : allowList) {
|
||||
if (p.matches(parsedUri)) {
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user