Replace iterator with foreach

This commit is contained in:
Daniel Martí 2013-12-12 00:23:10 +01:00
parent 00a0f4399f
commit ccbfa2744e

View File

@ -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;