Replace iterator with foreach
This commit is contained in:
parent
00a0f4399f
commit
ccbfa2744e
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user