Skip to content

Commit

Permalink
Updates from review
Browse files Browse the repository at this point in the history
  • Loading branch information
gregw committed Aug 24, 2023
1 parent 09db3bb commit 7348bf9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@ public int nextIndex()
@Override
public HttpField previous()
{
if (_index == 0)
throw new NoSuchElementException("-1");
if (_index <= 0)
throw new NoSuchElementException(Integer.toString(_index - 1));
_last = --_index;
return _fields[_last];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -495,8 +495,8 @@ public int nextIndex()
@Override
public HttpField previous()
{
if (_index == 0)
throw new NoSuchElementException("-1");
if (_index <= 0)
throw new NoSuchElementException(Integer.toString(_index - 1));
_last = --_index;
return _fields[_last];
}
Expand Down

0 comments on commit 7348bf9

Please sign in to comment.