mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
convert while loops to foreach where possible
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user