File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
main/java/org/neo4j/gds/compat
test/java/org/neo4j/gds/compat Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,8 @@ public enum Neo4jVersion {
30
30
V_4_4 ,
31
31
V_5_1 ,
32
32
V_5_2 ,
33
- V_5_3 ;
33
+ V_5_3 ,
34
+ V_RC ;
34
35
35
36
@ Override
36
37
public String toString () {
@@ -45,6 +46,8 @@ public String toString() {
45
46
return "5.2" ;
46
47
case V_5_3 :
47
48
return "5.3" ;
49
+ case V_RC :
50
+ return "RC" ;
48
51
default :
49
52
throw new IllegalArgumentException ("Unexpected value: " + this .name () + " (sad java 😞)" );
50
53
}
@@ -110,6 +113,8 @@ static Neo4jVersion parse(String version) {
110
113
return Neo4jVersion .V_5_2 ;
111
114
} else if (minorVersion == 3 ) {
112
115
return Neo4jVersion .V_5_3 ;
116
+ } else if (minorVersion == 4 ) {
117
+ return Neo4jVersion .V_RC ;
113
118
}
114
119
}
115
120
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ class Neo4jVersionTest {
44
44
"5.2.0-dev, V_5_2" ,
45
45
"5.2.0, V_5_2" ,
46
46
"5.3.0, V_5_3" ,
47
+ "5.4.0, V_RC" ,
47
48
})
48
49
void testParse (String input , Neo4jVersion expected ) {
49
50
assertEquals (expected .name (), Neo4jVersion .parse (input ).name ());
You can’t perform that action at this time.
0 commit comments