Skip to content
This repository has been archived by the owner on May 18, 2019. It is now read-only.

Commit

Permalink
Update guava to 18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tamalsaha committed Feb 1, 2017
1 parent 3568280 commit 3d67efe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/src/main/java/hudson/util/RunList.java
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public R get(int index) {
public List<R> subList(int fromIndex, int toIndex) {
List<R> r = new ArrayList<R>();
Iterator<R> itr = iterator();
Iterators.skip(itr,fromIndex);
Iterators.advance(itr,fromIndex);
for (int i=toIndex-fromIndex; i>0; i--) {
r.add(itr.next());
}
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/jenkins/widgets/HistoryPageFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ private <ItemT> void addInternal(@Nonnull Iterable<ItemT> items) {
// We have to restart the iterator and skip the items that we added (because
// we may have popped an extra item off the iterator that did not get added).
Iterator<ItemT> skippedIter = items.iterator();
Iterators.skip(skippedIter, itemsToAdd.size());
Iterators.advance(skippedIter, itemsToAdd.size());
for (int i = itemsToAdd.size(); i < toFillCount && skippedIter.hasNext(); i++) {
ItemT item = skippedIter.next();
itemsToAdd.addLast(item);
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ THE SOFTWARE.
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>11.0.1</version>
<version>18.0</version>
</dependency>

<dependency>
Expand Down

0 comments on commit 3d67efe

Please sign in to comment.