Skip to content

Commit 6311523

Browse files
bigmontzfbiville
andauthored
Apply suggestions from code review
Co-authored-by: Florent Biville <[email protected]>
1 parent 537c102 commit 6311523

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

driver/src/main/java/org/neo4j/driver/internal/messaging/BoltProtocolVersion.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ public int toIntRange(BoltProtocolVersion minVersion)
5959
{
6060
if(majorVersion != minVersion.majorVersion)
6161
{
62-
throw new IllegalArgumentException( "Versions should be from the same version" );
62+
throw new IllegalArgumentException( "Versions should be from the same major version" );
6363
}
6464
else if (minorVersion < minVersion.minorVersion)
6565
{
66-
throw new IllegalArgumentException("Max version should be newest than min version");
66+
throw new IllegalArgumentException("Max version should be newer than min version");
6767
}
6868
int range = minorVersion - minVersion.minorVersion;
6969
int shiftedRange = range << 16;

0 commit comments

Comments
 (0)