Skip to content

Commit

Permalink
[JENKINS-20892] Noting that RunList.getFirstBuild (used by BuildTimel…
Browse files Browse the repository at this point in the history
…ineWidget) breaks lazy loading.

(cherry picked from commit a586609)
  • Loading branch information
jglick authored and olivergondza committed Feb 28, 2014
1 parent f61086b commit 537e94a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/main/java/hudson/util/RunList.java
Expand Up @@ -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;
Expand Down

0 comments on commit 537e94a

Please sign in to comment.