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
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ public boolean isEmpty() {
return !iterator().hasNext(); return !iterator().hasNext();
} }


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

0 comments on commit a586609

Please sign in to comment.