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);
|
Uri parsedUri = Uri.parse(uri);
|
||||||
// Look for match in allow list
|
// Look for match in allow list
|
||||||
Iterator<URLPattern> pit = allowList.iterator();
|
for (URLPattern p : allowList) {
|
||||||
while (pit.hasNext()) {
|
|
||||||
URLPattern p = pit.next();
|
|
||||||
if (p.matches(parsedUri)) {
|
if (p.matches(parsedUri)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user