use entrySet() instead of keySet()
Change-Id: Ieef83dadc599370789cdfd60e566d5d4a5976773
This commit is contained in:
@@ -310,9 +310,9 @@ public class ChangeJson {
|
|||||||
if (has(ALL_REVISIONS) || has(CURRENT_REVISION) || limited != null) {
|
if (has(ALL_REVISIONS) || has(CURRENT_REVISION) || limited != null) {
|
||||||
out.revisions = revisions(cd);
|
out.revisions = revisions(cd);
|
||||||
if (out.revisions != null) {
|
if (out.revisions != null) {
|
||||||
for (String commit : out.revisions.keySet()) {
|
for (Map.Entry<String, RevisionInfo> entry : out.revisions.entrySet()) {
|
||||||
if (out.revisions.get(commit).isCurrent) {
|
if (entry.getValue().isCurrent) {
|
||||||
out.current_revision = commit;
|
out.current_revision = entry.getKey();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user