Navigation Menu

Skip to content

Commit

Permalink
[JENKINS-18065] 54c0846 amendment: presumably RunMap.entrySet().itera…
Browse files Browse the repository at this point in the history
…tor().next().setValue(…) should be illegal.

(cherry picked from commit da57ad5)
  • Loading branch information
jglick authored and olivergondza committed Aug 1, 2014
1 parent 632d7fe commit f1b0779
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -2,7 +2,7 @@

import jenkins.model.lazy.AbstractLazyLoadRunMap.Direction;

import java.util.AbstractMap.SimpleEntry;
import java.util.AbstractMap.SimpleImmutableEntry;
import java.util.AbstractSet;
import java.util.Iterator;
import java.util.Map.Entry;
Expand Down Expand Up @@ -74,7 +74,7 @@ public Entry<Integer,R> next() {
}

private Entry<Integer, R> entryOf(R r) {
return new SimpleEntry<Integer, R>(owner.getNumberOf(r),r);
return new SimpleImmutableEntry<Integer, R>(owner.getNumberOf(r),r);
}

public void remove() {
Expand Down

0 comments on commit f1b0779

Please sign in to comment.