Skip to content

Commit

Permalink
Add requireNonNull check
Browse files Browse the repository at this point in the history
  • Loading branch information
sopel39 committed Oct 29, 2018
1 parent 7065180 commit bd63cab
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ else if (processor.isBlocked()) {
}

if (processorIterator.hasNext()) {
processor = processorIterator.next();
processor = requireNonNull(processorIterator.next());
continue;
}

Expand Down Expand Up @@ -345,8 +345,7 @@ public T getResult()

private static class ElementAndProcessor<T>
{
@Nullable
final T element;
@Nullable final T element;
final WorkProcessor<T> processor;

ElementAndProcessor(T element, WorkProcessor<T> processor)
Expand Down

0 comments on commit bd63cab

Please sign in to comment.