Skip to content
Permalink
Browse files
[JENKINS-20892] Noting that RunList.getFirstBuild (used by BuildTimel…
…ineWidget) breaks lazy loading.

(cherry picked from commit a586609)
  • Loading branch information
jglick authored and olivergondza committed Feb 28, 2014
1 parent f61086b commit 537e94a09c8fa88607d998162b5a62eac3fe11d5
Showing with 2 additions and 0 deletions.
  1. +2 −0 core/src/main/java/hudson/util/RunList.java
@@ -168,6 +168,8 @@ public boolean isEmpty() {
return !iterator().hasNext();
}

/** @deprecated see {@link #size()} for why this violates lazy-loading */
@Deprecated
public R getFirstBuild() {
size();
return first;

0 comments on commit 537e94a

Please sign in to comment.