mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-01-31 02:01:35 -05:00
Replace iterator with foreach
This commit is contained in:
@@ -1085,9 +1085,8 @@ public class DB {
|
||||
}
|
||||
|
||||
public boolean contains(String v) {
|
||||
Iterator<String> it = iterator();
|
||||
while (it.hasNext()) {
|
||||
if (it.next().equals(v))
|
||||
for (String s : this) {
|
||||
if (s.equals(v))
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user