Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Florent Biville <445792+fbiville@users.noreply.github.com>
  • Loading branch information
bigmontz and fbiville committed Dec 8, 2020
1 parent 537c102 commit 6311523
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ public int toIntRange(BoltProtocolVersion minVersion)
{
if(majorVersion != minVersion.majorVersion)
{
throw new IllegalArgumentException( "Versions should be from the same version" );
throw new IllegalArgumentException( "Versions should be from the same major version" );
}
else if (minorVersion < minVersion.minorVersion)
{
throw new IllegalArgumentException("Max version should be newest than min version");
throw new IllegalArgumentException("Max version should be newer than min version");
}
int range = minorVersion - minVersion.minorVersion;
int shiftedRange = range << 16;
Expand Down

0 comments on commit 6311523

Please sign in to comment.