Skip to content

Commit

Permalink
Add @nullable to AbstractSequentialIterator's computeNext() method re…
Browse files Browse the repository at this point in the history
…turn value so that [] doesn't complain

RELNOTES=n/a

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=203775669
  • Loading branch information
ilevit authored and ronshapiro committed Jul 13, 2018
1 parent f85390d commit 7975a2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ protected AbstractSequentialIterator(@NullableDecl T firstOrNull) {
* remain. This method is invoked during each call to {@link #next()} in order to compute the
* result of a <i>future</i> call to {@code next()}.
*/
@NullableDecl
protected abstract T computeNext(T previous);

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ protected AbstractSequentialIterator(@Nullable T firstOrNull) {
* remain. This method is invoked during each call to {@link #next()} in order to compute the
* result of a <i>future</i> call to {@code next()}.
*/
@Nullable
protected abstract T computeNext(T previous);

@Override
Expand Down

0 comments on commit 7975a2f

Please sign in to comment.