convert while loops to foreach where possible

This commit is contained in:
Bas Leijdekkers
2018-09-06 15:45:01 +02:00
parent dc324799dc
commit 28a24134b2
@@ -192,9 +192,7 @@ public final class LogInformation {
/** Search the revisions by number of revision. If not found, return null.
*/
public Revision getRevision(String number) {
final Iterator it = revisions.iterator();
while (it.hasNext()) {
Revision item = (Revision)it.next();
for (Revision item : revisions) {
if (item.getNumber().equals(number)) {
return item;
}