Skip to content

Making server dev version treated as the same as highest version #508

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 27, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class ServerVersion
public static final ServerVersion v3_2_0 = new ServerVersion( 3, 2, 0 );
public static final ServerVersion v3_1_0 = new ServerVersion( 3, 1, 0 );
public static final ServerVersion v3_0_0 = new ServerVersion( 3, 0, 0 );
public static final ServerVersion vInDev = new ServerVersion( 0, 0, 0 );
public static final ServerVersion vInDev = new ServerVersion( Integer.MAX_VALUE, Integer.MAX_VALUE, Integer.MAX_VALUE );

private static final String NEO4J_IN_DEV_VERSION_STRING = "Neo4j/dev";
private static final Pattern PATTERN =
Expand Down Expand Up @@ -161,7 +161,7 @@ public String toString()

private static String stringValue( int major, int minor, int patch )
{
if ( major == 0 && minor == 0 && patch == 0 )
if ( major == Integer.MAX_VALUE && minor == Integer.MAX_VALUE && patch == Integer.MAX_VALUE )
{
return NEO4J_IN_DEV_VERSION_STRING;
}
Expand Down