Replace 'for' loop with 'foreach'
Change-Id: I5ca01d678b8cf9e9fc75b21270329b483e31694e
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user