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) {
|
public boolean contains(String v) {
|
||||||
Iterator<String> it = iterator();
|
for (String s : this) {
|
||||||
while (it.hasNext()) {
|
if (s.equals(v))
|
||||||
if (it.next().equals(v))
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user