Replace 'for' loop with 'foreach'

Change-Id: I5ca01d678b8cf9e9fc75b21270329b483e31694e
This commit is contained in:
alex.ryazantsev
2013-12-04 01:02:53 +04:00
parent 2ede20d73d
commit 05872efbbd
6 changed files with 11 additions and 15 deletions

View File

@@ -177,8 +177,7 @@ class History extends FlowPanel {
Timestamp when = msg.date();
List<CommentInfo> match = new ArrayList<CommentInfo>();
List<CommentInfo> other = new ArrayList<CommentInfo>();
for (int i = 0; i < list.size(); i++) {
CommentInfo c = list.get(i);
for (CommentInfo c : list) {
if (c.updated().compareTo(when) <= 0) {
match.add(c);
} else {