Skip to content
Permalink
Browse files

[JENKINS-18065] 54c0846 amendment: presumably RunMap.entrySet().itera…

…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 f1b0779c6d356db8fb0de6c89bd5bc03483d6b34
Showing with 2 additions and 2 deletions.
  1. +2 −2 core/src/main/java/jenkins/model/lazy/LazyLoadRunMapEntrySet.java
@@ -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;
@@ -74,7 +74,7 @@ public boolean hasNext() {
}

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() {

0 comments on commit f1b0779

Please sign in to comment.
You can’t perform that action at this time.