Skip to content

Commit

Permalink
[Java] Tidy up after merge of PR #214.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjpt777 committed Jul 20, 2020
1 parent 33d5da3 commit fb1093c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions agrona/src/main/java/org/agrona/AsciiEncoding.java
Original file line number Diff line number Diff line change
Expand Up @@ -202,13 +202,13 @@ public static long parseLongAscii(final CharSequence cs, final int index, final

private static int parseSingleDigit(final CharSequence cs, final int index, final int length)
{
if (length == 1)
if (1 == length)
{
return AsciiEncoding.getDigit(index, cs.charAt(index));
}
else if (length == 0)
else if (0 == length)
{
throw new AsciiNumberFormatException("'' is not a valid int @ " + index);
throw new AsciiNumberFormatException("'' is not a valid digit @ " + index);
}
else
{
Expand Down

0 comments on commit fb1093c

Please sign in to comment.