Skip to content

Commit 0f277c4

Browse files
authored
Merge pull request #508 from zhenlineo/1.7-dev-max
Making server dev version treated as the same as highest version
2 parents 5701226 + d1efec7 commit 0f277c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

driver/src/main/java/org/neo4j/driver/internal/util/ServerVersion.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public class ServerVersion
3232
public static final ServerVersion v3_2_0 = new ServerVersion( 3, 2, 0 );
3333
public static final ServerVersion v3_1_0 = new ServerVersion( 3, 1, 0 );
3434
public static final ServerVersion v3_0_0 = new ServerVersion( 3, 0, 0 );
35-
public static final ServerVersion vInDev = new ServerVersion( 0, 0, 0 );
35+
public static final ServerVersion vInDev = new ServerVersion( Integer.MAX_VALUE, Integer.MAX_VALUE, Integer.MAX_VALUE );
3636

3737
private static final String NEO4J_IN_DEV_VERSION_STRING = "Neo4j/dev";
3838
private static final Pattern PATTERN =
@@ -161,7 +161,7 @@ public String toString()
161161

162162
private static String stringValue( int major, int minor, int patch )
163163
{
164-
if ( major == 0 && minor == 0 && patch == 0 )
164+
if ( major == Integer.MAX_VALUE && minor == Integer.MAX_VALUE && patch == Integer.MAX_VALUE )
165165
{
166166
return NEO4J_IN_DEV_VERSION_STRING;
167167
}

0 commit comments

Comments
 (0)