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.
  • Loading branch information
jglick committed Dec 5, 2013
1 parent 9cb0638 commit a586609
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 @@ -167,6 +167,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 a586609

Please sign in to comment.